Installation
- CocoaPods
- Carthage
- Swift Package Manager
1
Install CocoaPods
2
Create Podfile
3
Add Mixpanel
4
Install
Initialize
InAppDelegate.m:
Track Events
Timing Events
Flush Events
Identify Users
Reset on Logout
User Profiles
- setOnce:
- increment:by:
- append:
- union:
Super Properties
Group Analytics
Privacy Controls
Opt Out
EU/India Data Residency
Disable Geolocation
Debug Mode
MIXPANEL_DEBUG=1MIXPANEL_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.