Uninstalling and reinstalling the app by the same user will cause the same thing? i mean will mixpanel generate a new distinct ID in such a case?
Hi Sakir, Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> š
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Yes, uninstalling and reinstalling the app will cause Mixpanel to generate a new distinct_id for the user. When a user uninstalls the app, the distinct_id, $device_id, and any super properties stored locally are removed from the device. Upon reinstall, the Mixpanel SDK will generate a new random distinct_id and $device_id for the user. If you later call identify with the user's known identifier, Mixpanel will reconcile and attribute the data to the correct user profile in the Mixpanel UIĀ Identity Management in Mixpanel FAQ.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ā¹ļøĀ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
Let me check the knowledge base for you again. One moment! š
When a user logs out, the recommended practice is to call theĀ reset()Ā method. This action clears the local storage (including theĀ distinct_idĀ andĀ $device_id) and generates a newĀ $device_idĀ for the next session. If you follow this best practice, the next user who logs in will have a differentĀ $device_idĀ (and thus a differentĀ distinct_idĀ before identification).If you do not callĀ reset()Ā on logout, theĀ $device_idĀ (andĀ distinct_id) will remain the same. This means that when a different user logs in and you callĀ identify()Ā with their user ID, Mixpanel will merge the previous and new user IDs into a single identity cluster, causing events from both users to appear under the same profileāwhich is not recommended for shared devicesĀ Identity Management in Mixpanel FAQĀ |Ā Identifying Users (Simplified) - Example User Flows.Summary: - If you callĀ reset()Ā on logout: theĀ $device_idĀ will be different for the next user. - If you do not callĀ reset(): theĀ $device_idĀ remains the same for the next user until reset or app data is cleared.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ā¹ļøĀ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.