Add session recording, rage tap detection, crash tracking, and network analytics to your Android app in under 5 minutes.
implementation 'com.github.Unilitix-hq:unilitix-android:1.4.0'Open settings.gradle in your project root and add the JitPack repository.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}Open your app-level build.gradle and add the implementation line inside dependencies {}.
dependencies {
// ... your existing dependencies
implementation 'com.github.Unilitix-hq:unilitix-android:1.4.0'
}Log into your Unilitix dashboard, open your app, and copy the API key from the Settings → Data Capture tab.
Open Dashboard →Call Unilitix.init() once in your Application class onCreate(). Replace "YOUR_API_KEY" with the key from Step 3.
import com.unilitix.android.Unilitix
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Unilitix.init(
context = this,
apiKey = "YOUR_API_KEY"
)
}
}
// Don't forget to register in AndroidManifest.xml:
// <application android:name=".MyApp" ...>Enrich your analytics with user identity and custom events.
Associate sessions with a user ID and custom traits for filtered analytics and user-level replays.
Unilitix.getInstance().identify(
userId = "user_123",
traits = mapOf(
"email" to "user@example.com",
"name" to "Ada Okafor",
"plan" to "pro"
)
)Send custom events with properties to power funnels, retention cohorts, and event analytics.
Unilitix.getInstance().track(
event = "checkout_started",
properties = mapOf(
"amount" to 2500,
"currency" to "NGN",
"method" to "card"
)
)The SDK tracks these out of the box — no extra code needed.