How is it that the User ID isn't set in some events, even though I can see it in the 'View Users – Activity Feed'? It's incorrectly grouping some users under the cohort that only uses Device ID, even though those users actually have a User ID and when I breakdown by User ID it says not set and have triggered the event that should exclude them from that group.
Hi event, 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
This situation can occur due to the way Mixpanel handles identity merging and event attribution, especially when using the Simplified ID Merge system.Key Points:Summary:
The discrepancy arises because the Activity Feed shows the merged user (reflecting the identity cluster), but event-level properties used for cohorting and breakdowns are not retroactively updated to include $user_id
on events tracked before identification. This is expected behavior in Mixpanel’s identity system.If you need to exclude users from a cohort based on an event that should have a $user_id
, ensure that the event is always sent after identification, or adjust your cohort logic to account for this identity merging behavior.For more details, see:
- Identifying Users (Simplified) – Example User Flows
- Identifying Users (Simplified) – 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.