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 Twinalyze Analytics SDK inside yourApplication class. This allows the SDK to start tracking sessions, events, and app-level insights properly.
application
Android application context.
apiKey
Your Twinalyze project API key.
secretKey
Your Twinalyze project secret key.
Demo Account
Email: support@twinalyze.comPassword: demo@123
Github Demo
Open the Android demo project.
Download APK
Download and test the demo APK.
Demo
Open the Twinalyze demo dashboard.
✅ Best Practice
Always callinitialize()inside yourApplicationclass, not inside an Activity. This helps Twinalyze capture complete session tracking from the start of the app lifecycle.
Add ProGuard File
Add the following rules in yourproguard-rules.pro file.