Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
Mixpanel helps you to be GDPR compliant. You can now disable and enable tracking at runtime by using new APIs we have written for you:
Mixpanel *mixpanel = [Mixpanel sharedInstance]; [mixpanel optOutTracking];
- Removes any PII(personally identifiable information) from the device and stops the SDK from tracking - See doc.
Mixpanel *mixpanel = [Mixpanel sharedInstance]; [mixpanel optInTracking];
- Use this method to opt-in an already opted-out user from tracking. See doc.
Mixpanel *mixpanel = [Mixpanel sharedInstance]; BOOL hasOptedOutTracking = [mixpanel hasOptedOutTracking];
- Returns YES if the user has opted out from tracking.
You can also initialize the SDK specifying a default tracking behavior (e.g do not track until
optInTracking() is called): See doc
Mixpanel *mixpanel = [Mixpanel sharedInstanceWithToken:@"YOUR_API_TOKEN" optOutTrackingByDefault:YES];