why is my page view duration for a day coming out to be higher than user's active session time?
This is a common discrepancy that can arise from how Mixpanel computes session duration versus page view duration. Here are the most likely reasons based on how Mixpanel sessions work:
Key Reasons for the Discrepancy
1. Sessions Reset at Midnight
Mixpanel resets all sessions at midnight (in your project timezone). This means a session spanning midnight is split into two separate sessions. If you're measuring page view duration across a full day without accounting for this reset, your calculation may differ from the session-based measurement. [Sessions Docs]
2. Non-User-Triggered Events Extending Sessions
If you haven't excluded backend or server-side events (e.g., push notifications, API events, membership payments) from your session settings, these events can restart the session timeout clock, artificially inflating session length. For example, if a user receives a notification every 25 minutes and your session timeout is 30 minutes, the session could last up to 24 hours. [Excluded Events]
3. How Session Duration Is Computed
Session duration is measured as the time between the Session Start and the last event before the timeout expires โ not the time of the Session End event itself. If page view duration is being calculated differently (e.g., delta between first and last page view), the two metrics may not align. [Sessions Docs]
4. Bounce Sessions Skewing Averages
Sessions where users view only one page (bounces) have a session duration of near zero, but if you're summing page view durations without filtering these out, the aggregate can look different. Filtering for sessions longer than a threshold (e.g., 10 seconds) can help normalize this. [Use Cases]
Recommended Steps
Exclude non-user-triggered events from your Session Settings (Project Settings > Session Settings).
Use the Session Duration (Seconds) property on Session Start/End events for accurate session time measurement, rather than computing it manually from page views.
Filter out bounce sessions to get a more meaningful average.
If you share more details about how you're computing page view duration, I can help narrow down the cause further.
โน๏ธย Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
