Skip to content

GDPR support

Choose a tag to compare

@patedit patedit released this 20 Apr 18:31
· 658 commits to master since this release

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:

MixpanelAPI.getInstance(context, "TOKEN").optOutTracking()
  • Removes any PII from the device and stops the SDK from tracking - See doc.
MixpanelAPI.getInstance(context, "TOKEN").optInTracking()
  • Use this method to opt-in an already opted-out user from tracking. See doc.
MixpanelAPI.getInstance(context, "TOKEN").hasOptedOutTracking()
  • Returns true 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

MixpanelAPI mixpanelAPI = MixpanelAPI.getInstance(context, "TOKEN", true);