Why is device_id recorded in different formats? A few look like UUID and others SHA_256
Hi Mayumi H., 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 device_id
in Mixpanel is used to associate events with the same anonymous user. It's automatically generated by Mixpanel's Web or Mobile SDKs and is local to the user's device. This ID will persist on all events tracked by that user on that device, until you call identify()
or reset()
methods. The format of the device_id
can vary based on how it's generated. If you're tracking from servers, you'll need to generate and manage the IDs yourself. In such cases, Mixpanel recommends generating a UUID and storing that value in a cookie. This UUID can then be used as the device_id
. However, the format of the device_id
can also be influenced by other factors such as the specific implementation or the requirements of the system. For example, in some cases, you might want to use a hash of some unique ID of the user as the device_id
for anonymizing users. In summary, the format of the device_id
can vary based on the specific implementation and requirements of the system. Sources:
- Anonymizing Users
- Server-side Identity Management
- Returning User
kapa.ai is still learning and improving, please let me know how I did by reacting below.
⤵️ Hint: Mention @kapa.ai in the thread for follow-ups.