what is the $identify event?
Hi Jorge C., 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
The $identify event in Mixpanel is a special event used in the Original ID Merge system to link an anonymous user (represented by an anonymous ID, typically a $device_id) with a known user (represented by your chosen user ID). When the $identify event is triggered—usually by calling .identify(<user_id> ) in the SDK—it sends an event containing both the anonymous ID ($anon_id) and the identified user ID ($identified_id). This creates a mapping between the two, merging them into a single identity cluster so that all events from both IDs are attributed to the same user in Mixpanel.Here’s an example of the $identify event payload: LBKS{ "event": "$identify", "properties": { "$identified_id": "<user_id> ", "$anon_id": "<device_id> ", "token": "YOUR_PROJECT_TOKEN" } }LBKS- The $identify event is only relevant for projects using the Original ID Merge system and has no effect in other ID management systems.
- The $anon_id must be in UUIDv4 format and not already merged to another $identified_id for the merge to succeed.
- This event can be triggered automatically by the SDK or manually via the API for server-side tracking.For more details, see the documentation on the Original ID Merge mechanism and the API reference.
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.
