How can we calculate average time spent per user per page on Mixpanel?
Hi Mansi g., 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
To calculate the average time spent per user per page in Mixpanel, you can use Sessions tracking combined with page view events. Here's how to approach this:
Using Session Duration Property
Mixpanel automatically tracks session duration through the "Session Duration (seconds)" property that comes with Session events. To analyze time spent per page: 1. Make sure you're tracking page views, either automatically with the Javascript SDK or through a CDP like Segment.2. In Insights, you can use the "Session Duration (seconds)" property along with page URL information to calculate average time per page per user.
Creating a Report for Average Time per Page
You can create an Insights report that: - Uses the "Aggregate Property per User" measurement - Selects "Sum" of the "Session Duration (seconds)" property - Breaks down by page URL or page name - Divides by 60 to convert to minutes if neededAs explained in the Mixpanel documentation: "You can use the 'Session Duration (seconds)' property associated with our Session Start/End events, which would measure the Session Duration in Seconds. To change it from seconds to minutes, you can use our formula and divide it by 60." Mixpanel Sessions FAQ
Alternative Approach Using Funnels
Another approach recommended by the Mixpanel community is to use the Time to Convert chart in Funnels: 1. Create a funnel with the page view event as the first step 2. Add a subsequent event (like viewing another page) as the second step 3. Use the Time to Convert chart to see how long users spend on that page before moving to the next actionAs mentioned in a community post: "Using Funnels, users can manually change the Time to Convert interval size, setting it to 30 seconds minimum and 30 minutes maximum to capture a user's session activity." Mixpanel Community: Top posts from 2021For more detailed analysis, you can also use the distribution view to see not just the average but the full distribution of time spent per page across your user base.
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.