Mixpanel Community Icon

Tracking User Sessions and Duration Metrics Effectively

·
·

How to get number of sessions of an user along with session duration of those sessions.

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

    Hi Abhijeet 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
    ·
    ·

    To get the number of sessions for a user along with the session duration of those sessions in Mixpanel, you can use the following approach: 1. Session Events: Mixpanel automatically generates “Session Start” and “Session End” events for each session. Each session event includes a property called “Session Duration (Seconds)” which represents the duration of that session in seconds. You can use this property to analyze session lengths.2. Counting Sessions per User: - In the Insights report, select the measurement as Sessions to count the number of sessions. - To get the number of sessions per user, use the “Aggregate Property per User” function and select “Count” on the “Session Start” event. This will give you the total number of sessions for each user.3. Viewing Session Durations: - You can break down or filter the “Session Start” or “Session End” events by the “Session Duration (Seconds)” property to see the duration of each session. - To see all session durations for a user, break down the “Session Start” event by user and include the “Session Duration (Seconds)” property.Example Steps in Mixpanel: - Go to the Insights report. - Select the “Session Start” event. - Set the measurement to Sessions (to count sessions). - Add a breakdown by user (e.g., by user ID or email). - Add the “Session Duration (Seconds)” property to see the duration for each session.This will allow you to see, for each user, the number of sessions and the duration of those sessions. You can also export this data for further analysis if needed.For more details, see the documentation on Session Properties and Session Controls in Reports.

    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.