Installation
1
Add dependency
Add to your
app/build.gradle:2
Sync Gradle
Click “Sync Project with Gradle Files” in Android Studio.
3
Add permissions
Add to your
AndroidManifest.xml:4
Initialize Mixpanel
Track Events
Timing Events
Flush Events
Identify Users
Reset on Logout
User Profiles
- setOnce()
- increment()
- append()
- union()
Super Properties
Group Analytics
Privacy Controls
Opt Out
EU Data Residency
Add toAndroidManifest.xml:
Disable Geolocation
Debug Mode
Platform Considerations
- Events flush every 60 seconds or on app background
- Batch size: 50 events by default
- Requires Android API level 16+
- Supports App Links tracking
- Session Replay requires separate SDK