Skip to main content
Unity SDK does not currently support Simplified ID Merge.

Installation

1

Add to manifest

Add to ./Packages/manifest.json:
Or specify a version:
2

Configure in Unity

  1. Open Edit → Project Settings → Mixpanel
  2. Enter your project token
  3. Click Save
3

Import and use

Supports Unity 2018.3+ with .NET 4.x or higher.

Track Events

Timing Events

Flush Events

Adjust flush interval in Edit → Project Settings → Mixpanel.

Identify Users

Reset on Logout

User Profiles

Super Properties

Group Analytics

Privacy Controls

Opt Out

EU/India Data Residency

Configure in Edit → Project Settings → Mixpanel:
  • EU: Set API Host Address to https://api-eu.mixpanel.com/
  • India: Set API Host Address to https://api-in.mixpanel.com/

Debug Mode

Enable in Unity Project Settings → Mixpanel or:

Platform Considerations

  • Works on all Unity platforms (iOS, Android, WebGL, Desktop)
  • Events flush every 60 seconds (configurable)
  • Super properties persist in local storage
  • Supports both 2D and 3D games
  • Compatible with Unity’s IL2CPP backend
For manual initialization, select “Manual Initialization” in settings and call Mixpanel.Init().

Resources