github mixpanel/mixpanel-swift v2.4.0
v2.4.0 - GDPR support

latest releases: v4.2.7, v4.2.6, v4.2.5...
6 years ago

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.mainInstance().optOutTracking()

  • Removes any PII(personally identifiable information) from the device and stops the SDK from tracking. See doc.
Mixpanel.mainInstance().optInTracking()

  • Use this method to opt-in an already opted-out user from tracking. See doc.
Bool hasOptedOutTracking = Mixpanel.mainInstance().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

let mixpanel = Mixpanel.initialize(token: "MIXPANEL_TOKEN", optOutTrackingByDefault: true)

Don't miss a new mixpanel-swift release

NewReleases is sending notifications on new releases.