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.
