please give me documentation on identity resolution
Hi Bradley 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
Certainly! I'd be happy to provide you with documentation on identity resolution in Mixpanel. Identity resolution is a crucial aspect of user tracking and analytics in Mixpanel. Here's a summary of the key points:1. Purpose: Identity resolution allows you to track users across different devices, sessions, and states (anonymous to identified) Identity Management Overview.2. Methods:
- .identify()
: Used when you know the user's identity, typically at login or signup Mixpanel SDKs: Javascript.
- .reset()
: Used to clear user data, typically at logout Mixpanel SDKs: Javascript.3. Simplified ID Merge: This system uses $device_id
for anonymous users and $user_id
for identified users. Including these properties in events triggers automatic identity merging Migrating to Simplified ID Merge.4. Example flow:
- Anonymous user: Include $device_id
in events.
- User identifies: Include both $device_id
and $user_id
in events.
- User logs out: Generate a new $device_id
for anonymous events.5. Server-side implementation:
- Generate and manage IDs yourself.
- Use a unique, persistent ID for anonymous users.
- Send an $identify
event when the user logs in to merge IDs Identifying Users (Original).6. Best practices:
- Use a unique, unchanging ID for $user_id
.
- Set user profile properties after identification.
- Handle multiple users on a single device by calling .reset()
at logout Identifying Users (Simplified).For more detailed information and implementation guides, please refer to the linked documentation.
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.