Can I change the distinct_id in already recorded events in Mixpanel to assign them to a specific profile?
Hi Pawel A., 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
Based on the knowledge sources provided, there is no direct way to change the distinct_id
of already recorded events in Mixpanel to assign them to a specific profile. However, Mixpanel does provide a mechanism to link different identifiers together, which can effectively achieve a similar result.Mixpanel uses an identity management system that allows you to connect events with different distinct_id
s and attribute them to one user. This is done through the use of special events like $identify
and $merge
.According to the Identity Management Overview:"You can connect events with different distinct_ids, ultimately attributing them to one user."The Identifying Users (Original) document explains that:"The $identify
event is used to link an Anonymous ID and your chosen User ID together. [...] Upon receiving this event, a mapping is created to merge the $anon_id
and $identified_id
together to form an Identity Cluster."Additionally, there's a $merge
event that "allows you to merge any 2 identifiers together."While this doesn't directly change the distinct_id
of already recorded events, it does allow you to link different identifiers together, effectively attributing events from different distinct_id
s to the same user profile.It's important to note that this process is not instantaneous. As stated in the FAQ:"It may take up to 24 hours for this mapping to propagate to all other parts of the system."In conclusion, while you can't directly change the distinct_id
of recorded events, you can use Mixpanel's identity management features to link different identifiers and attribute events to the correct user profile.
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.
Can I do it in Mixpanel panel?
Let me check the knowledge base for you again. One moment! đź“š
Based on the knowledge sources provided, there is no information indicating that you can merge or change distinct IDs directly through the Mixpanel user interface. The identity management and merging processes described in the documentation are primarily handled through API calls and SDK methods.The Identifying Users (Original) document mentions that identity merging is done through specific events like $identify
, $create_alias
, and $merge
, which are typically implemented programmatically:"The Original ID Merge API uses three special events to link various user identifiers and sets the distinct_id for your events; these events are namely: create_alias, and merge API event](https://developer.mixpanel.com/reference/identity-merge) is specifically mentioned to be only accessible via API:"merge events that are sent via https://api.mixpanel.com/import, which is protected by the project api secret."Given this information, it appears that merging or changing distinct IDs is not a function available in the Mixpanel user interface, but rather a process that needs to be implemented through code or API calls. If you need to perform these operations, you would likely need to use Mixpanel's SDKs or APIs to do so.
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.