Skip to main content

Installation

1

Install CocoaPods

2

Create Podfile

3

Add Mixpanel

4

Install

Initialize

In AppDelegate.m:
Access the instance:

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

Or add to build settings Preprocessor Macros:
  • MIXPANEL_DEBUG=1
  • MIXPANEL_ERROR=1

Platform Considerations

  • Events flush every 60 seconds or on app background
  • Requires iOS 9.0+
  • Uses IFV (Identifier for Vendor) for distinct_id
  • Super properties persist in local storage
  • Supports push notification tracking
Since v3.6.2, Mixpanel no longer uses IDFA by default.

Resources