Mixpanel Community Icon

Tracking User Counts on Shared Devices: Is It Possible?

·
·

is it possible to count whenever multiple users id uses the same device?

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

    Hi Matteo S., 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
    ·
    ·

    Yes, it is possible to track when multiple users use the same device in Mixpanel, particularly when using the Simplified ID Merge system. This functionality is achieved through proper implementation of the .identify() and .reset() methods. Here's how it works:1. When a user logs out, you call the .reset() method. This generates a new $device_id for the session Identifying Users (Simplified).2. When a new user logs in on the same device, you call .identify(<user_id> ) with their unique user ID. This creates a new identity cluster linking the new $device_id with the new $user_id Identifying Users (Simplified).3. Mixpanel will then be able to track that multiple user IDs have been associated with the same device over time.Here's an example of how this would look in practice:LBKS// User 1 logs out mixpanel.reset();LBKS// New anonymous events are tracked with a new $device_idLBKS// User 2 logs in mixpanel.identify('user2_id');LBKS// Events are now tracked for User 2LBKSBy implementing this pattern, you can effectively track when multiple users use the same device. However, it's important to note that Mixpanel doesn't provide a built-in metric specifically for counting the number of users per device. You would need to analyze the data to derive this information, possibly by looking at the number of unique $user_id values associated with each $device_id over time.

    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 Matteo S.
    Matteo S.
    ·
    ·

    ok and what to do in the insights panel to view users using the same device?