Skip to main content

Installation

1

Install the package

2

Install iOS dependencies

Navigate to your iOS folder and install pods:
3

Initialize Mixpanel

Configuration Options

JavaScript Mode (Expo Support)

JavaScript Mode supports Expo and React Native for Web.
1

Install AsyncStorage

2

Initialize with useNative: false

Track Events

Timing Events

Flush Events

Identify Users

Reset on Logout

User Profiles

Super Properties

Group Analytics

Privacy Controls

Opt Out

EU/India Data Residency

Disable Geolocation

Debug Mode

View logs in Xcode or Android Studio console.

Platform Considerations

  • Native Mode: Full iOS/Android SDK features
  • JavaScript Mode: Cross-platform, Expo compatible
  • Events flush every 60 seconds or on app background
  • Batch size: 50 events by default
  • Local storage persists until app uninstall
JavaScript Mode does not support legacy auto-tracked events.

Resources