Install
Add the dependency with Gradle
Android SDK
A lightweight Kotlin SDK that captures every event and session, tracks FCM & HMS push, and works offline — streaming it all into B2Metric IQ for funnels, retention and churn.
Add the Gradle dependency, initialize in your Application class, and log your first event.
Add the dependency with Gradle
Initialize in your Application class
Log a typed event in one call
One install captures the full picture — automatic baselines plus precise, typed events you control.
Capture how users interact with your app.
Log custom events with a single call and attach a property map — strings, numbers, booleans — for full context on every interaction.
Lifecycle events, with zero code from you.
The SDK automatically tracks key lifecycle events — app opens, sessions and activity transitions — so you get a behavioral baseline out of the box.
Measure delivery and engagement.
Built-in support for Firebase Cloud Messaging and Huawei Mobile Services attributes notification delivery and opens to downstream behavior.
Battery- and network-friendly by design.
Events are queued and sent in batches to optimize battery life and network usage. Tune batchSize and flushInterval to fit your app.
Never lose an event off-grid.
Events captured while the device is offline are persisted locally and flushed automatically once connectivity returns.
Verify your integration in real time.
Raise the log level to stream every event and network call to Logcat while developing, then silence it for release builds.
Three parameters control everything. Send events instantly while debugging, then batch for battery and network efficiency in release builds.
From installation to troubleshooting — every page in the B2Metric Academy Android guide.
Add the package, paste your API key, and watch events arrive in B2Metric IQ in real time.