Skip to main content

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

Super Properties

Group Analytics

Privacy Controls

Opt Out

EU Data Residency

Add to AndroidManifest.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

Resources