✦ Cookieless analytics, built around daily rotating IDs
☰
All featuresWeb AnalyticsCustom EventsCookieless AnalyticsIntegrationsPricingDocumentationComparisonsFree toolsBlogGlossary
Metric definition

How is average session duration calculated?

Average session duration is the sum of reconstructed sessions’ first-to-last event spans divided by session count. It measures observed activity, not continuous attention.

A worked example

One session has page events at 10:00 and 10:03, giving a three-minute span. Another has only one event, giving a zero span. Their average observed duration is 90 seconds.

Missing endpoints matter

The tracker does not continuously prove that someone is present. Leaving a tab open without events does not create a longer first-to-last span. Blocking, lost delivery, and missing custom events can shorten observations.

Use the right context

Compare dates and filters consistently. A changing mix of routes or devices can move the average. Long inactivity starts another reconstructed session, and a UTC-day change breaks anonymous continuity.

Frequently asked questions

Why can duration be zero?

A session with one recorded event has no later timestamp from which to calculate elapsed activity.

Sources and implementation