Mixpanel Community Icon

Understanding Device IDs in Mixpanel for User Tracking

·
·

Explain to non-technical users how These device IDs works in Mixpanel when the user is in an anonymous state and how when the user when known we can track how many have subsequently logged in Using examples such as below 1 device 1 browser 1 device 2 browser 2 device 2 browser 2 device 1 browser

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    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

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Certainly! Here’s a non-technical explanation of how device IDs work in Mixpanel for anonymous users, and how you can track which of those users later log in, using your examples.---

    How Device IDs Work for Anonymous Users

    When someone visits your website or app without logging in, Mixpanel automatically assigns a unique “device ID” to that session. This device ID is like a nametag for that device and browser combination. It helps Mixpanel keep track of what that anonymous user does, even if we don’t know who they are yet.- 1 device, 1 browser: If a user visits your site on their laptop using Chrome, Mixpanel gives that session a device ID (e.g., D1). All actions they take before logging in are tied to D1.- 1 device, 2 browsers: If the same user opens your site in Chrome and Firefox on the same laptop, Mixpanel assigns a different device ID for each browser (e.g., D1 for Chrome, D2 for Firefox). Each browser is treated as a separate anonymous user until they log in.- 2 devices, 2 browsers: If a user visits your site on both their laptop and their phone, and uses different browsers on each, Mixpanel assigns a unique device ID for each device-browser combination (e.g., D1 for Chrome on laptop, D2 for Firefox on laptop, D3 for Chrome on phone, D4 for Firefox on phone).- 2 devices, 1 browser: If a user visits your site on their laptop and phone, both using Chrome, Mixpanel still assigns a different device ID for each device (e.g., D1 for laptop Chrome, D2 for phone Chrome).---

    What Happens When the User Logs In?

    When the user logs in or signs up, you (or your developers) tell Mixpanel who the user is by calling an “identify” function with their user ID (e.g., U1). At this point: - Mixpanel links the previous anonymous device ID (e.g., D1) to the now-known user ID (U1). - All past and future actions from that device/browser are now associated with U1. - If the same user logs in from another device or browser (e.g., D2), and you call “identify” with the same user ID (U1), Mixpanel merges those histories together. Now, D1 and D2 are both linked to U1.This means you can see which anonymous users (device IDs) eventually logged in and became known users.---

    Tracking Anonymous to Logged-In Users

    Mixpanel allows you to answer questions like: “How many anonymous visitors ended up creating an account or logging in?”Example: - A user visits your site on their laptop (D1), browses around, then signs up (U1). Mixpanel merges D1 and U1. - Later, the same user visits on their phone (D2), logs in as U1. Mixpanel merges D2 and U1. - Now, you can see all actions from both devices under the same user (U1), including what they did before logging in.---In summary: - Each device/browser gets a unique device ID for anonymous tracking. - When a user logs in, Mixpanel merges their anonymous device ID(s) with their user ID. - This lets you track how many anonymous users later become known users, and see their full journey across devices and browsers.For more details and visual examples, see the Mixpanel documentation on Identifying Users (Simplified) and Identity Management in Action.

    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.

  • Avatar of event
    event
    ·
    ·

    Refine and explain as a description to add to Mixpanel dashboard so users understand how to interpret the data they are looking at kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Let me check the knowledge base for you again. One moment! 📚

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Certainly! Here’s a clear, dashboard-ready description based strictly on the knowledge sources: ---

    Understanding Anonymous and Logged-In Users in Mixpanel

    Mixpanel tracks users before and after they log in by assigning a unique device ID to each device and browser combination. When a user is browsing anonymously (not logged in), all their actions are tied to this device ID. If the same person visits from different devices or browsers, each session is tracked separately with its own device ID.When a user logs in or signs up, Mixpanel links their previous anonymous activity (device ID) to their user ID. This means you can see the full journey of a user—from their first anonymous visit to their actions after logging in—across all devices and browsers they use. If a user logs in from multiple devices or browsers, Mixpanel merges all related histories under the same user profile.How to interpret your data: - Anonymous users are tracked by device ID until they log in. - Once logged in, all previous and future activity from that device/browser is merged with the user’s profile. - This allows you to measure how many anonymous visitors become known users and to analyze their complete journey, including actions taken before logging in.For example, if a user visits your site on their laptop and phone, Mixpanel will initially track them as two separate anonymous users. When they log in on each device, Mixpanel merges these histories, so you see a unified view of that user’s activity across devices and sessions.Learn more about how Mixpanel handles user identification and merging.---

    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.