I need Mixpanel to forget distinct_id when user logs out. In iOS app i call reset (https://mixpanel.com/site_media/doctyl/uploads/iPhone-spec/Classes/Mixpanel/index.html#//apple_ref/occ/instm/Mixpanel/reset) and it works.
I cant find the right call in Android mixpanel documentation, i tried calling clearSuperProperties(), but distinct_id persists.
An alias is a new. value that will be interpreted by Mixpanel as an existing value. That. means that you can send messages to Mixpanel using the new value, and. Mixpanel will continue to use the old value for calculating funnels and.
Mixpanel is the most advanced analytics platform which is used to track user interaction with the web and mobile apps.
.clearSuperProperties()
to remove any Super Properties in local storage.new_distinct_id = UUID.randomUUID().toString());
.identify(new_distinct_id)
and .getPeople().identify(new_distinct_id)
This should wipe the device clean for a fresh user that can then register and be aliased to another distinct_id
.
EDIT: The best way to do this with javascript is to delete the cookie. The name of the cookie is mp_{mixpanel_token_id}_mixpanel :)
Actually there's a reset() function in the MixpanelAPI class that, according to the doc, does the following : "Clears all distinct_ids, superProperties, and push registrations from persistent storage." Hope that helps
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With