Add the SDK Dependency
Add the following dependency to your app-levelbuild.gradle file.
build.gradle, make sure the following plugins are configured:
Initializing Analytics SDK in Android
Initialize the SDK in yourApplication class to start tracking sessions, events, and insights.
Best Practice
Always call initialize() inside your
Application class — not inside an Activity — to ensure
complete session tracking.
Add proguard file
Add the following rules to yourproguard-rules.pro file:
proguard-rules.pro