Glossary · Web analytics

What is average session duration?

Average session duration is the mean length of time between the first and last recorded activity in a session, averaged across all sessions in a period.

It's the closest single number to "how long do people stay," and it's only as accurate as the tool's knowledge of when a visitor actually left.

Also called: Session duration, Average visit duration, Time on site

Updated

How is average session duration calculated?

Average session duration = Σ (last hit time − first hit time) ÷ number of sessions

The catch is the last hit. Older tools only knew a visitor was there when they loaded a new page, so the time spent on the final page was invisible and a one-page visit counted as 0 seconds. Modern scripts send a final engagement ping when the visitor leaves or hides the tab, which closes that gap.

Average session duration example

Three sessions: one lasts 4 minutes across three pages, one lasts 90 seconds on a single page, one lasts 5 seconds. Average = (240 + 90 + 5) ÷ 3 ≈ 112 seconds, or 1m 52s. Under the old last-pageview method, the two single-page visits count as zero and the average drops to 80 seconds — a different story from the same visits.

Why session duration matters

Duration is a rough proxy for attention. A rising average after a redesign suggests people find more worth reading; a falling one on docs might mean answers got easier to find. It is most useful as a trend on one site, or compared between traffic sources: if visitors from one newsletter stay four times longer than visitors from an ad, that's a signal about audience fit.

Common session duration pitfalls

  • Averages hide the shape. A few 45-minute sessions from an open tab can drag the mean far above what typical visitors do. Look at the median or a distribution where available.
  • Idle tabs. Tools that measure wall-clock time count a tab left open over lunch. Prefer tools that only count visible, active time.
  • Zero-second bounces. Duration from tools that ignore the last page undercounts single-page visits badly.
  • Longer isn't always better. On a checkout or a support page, a longer session can mean people are stuck.

How VisitTrack measures session duration

VisitTrack's average session time is the span from the first to the last event in each session. Because the script sends an engagement event with active time and scroll depth when the visitor leaves the page or switches tabs, single-page visits get a real duration instead of zero. Per page, the Pages tab shows active time on page, counted only while the tab is visible, so background tabs don't inflate it. Bot sessions are excluded by default.

Frequently asked questions

What is the difference between session duration and time on page?

Session duration covers the whole visit across every page; time on page covers one page. A three-page visit has one session duration and three time-on-page values.

Why is my average session duration so low?

Usually because single-page visits are counted as zero seconds by a tool that can't see when people leave, or because bot traffic with near-zero duration isn't filtered out.

Related terms

Tools and guides

See which channels actually bring paying customers

VisitTrack is cookie-free analytics with revenue attribution built in. One script tag, no consent banner, live in two minutes. 14 days free, no card required.