Average session duration
Average session duration is the mean length of a visit: the total time of all sessions in a period divided by the number of sessions. The formula is simple; the hard part is timing the last page of each visit.
Updated
Also called: avg. session duration, average visit duration, session length, avg session
Definition and formula
A session runs from a visitor's first page view until their activity stops, and closes after a stretch of inactivity, usually 30 minutes. Average session duration adds up the length of every session in the period and divides by how many there were:
average session duration = total duration of all sessions / number of sessions
Example (illustrative numbers): three sessions last 30 seconds, 2 minutes and 5 minutes 30 seconds. Together that is 8 minutes, so the average is 8 / 3 = 2 minutes 40 seconds.
The last-page problem
A page view is a timestamp. A tool that only knows when each page loaded can measure the gap between the first and the last page view of a visit, but not how long the visitor stayed on the last page. Under that method a one-page visit lasts zero seconds however long it was read, and every longer visit is cut short by the reading time of its final page.
Tools work around this in different ways. Some send a beacon when the visitor leaves or hides the page. Some count only the time a page is in focus, as Google Analytics 4 does with its user engagement measure. Some leave zero-length visits out of the average. Each choice gives a different number for the same traffic.
How Linqry measures it
Linqry builds sessions when you open the dashboard: a visitor's page views belong to one session until there is a gap of more than 30 minutes. For each session it takes the larger of two measurements:
- Elapsed time: from the session's first page view to its last.
- Measured time on page: the sum of the time on page values the script sends when the visitor leaves or hides each page.
Sessions with no measurable time are left out, and the Session figure in the dashboard's top row is the average of the rest. It covers the selected date range and any filter you apply, such as a country, referrer or campaign, and shows the change against the previous period. The CSV export calls the same number Avg session.
Reading it well
- Longer isn't automatically better. Someone hunting for a price they can't find has a long session. Read duration next to an outcome, such as a goal completion.
- Averages hide the shape. A few very long sessions, like a tab left open over lunch, pull the mean up. Compare a period with the one before rather than trusting a single figure.
- Compare like with like. A tool that times the last page and one that doesn't report very different averages for identical visits.
- Hidden tabs stop the clock. Linqry's script reports a page's time when the tab is hidden, so time after the visitor switches back isn't added to that page.
Related terms
Frequently asked questions
Why is average session duration lower in one tool than in another?
Usually because of the last page of each visit. Tools that can't time the final page count one-page visits as zero seconds or drop them, and tools also differ in their inactivity timeout and bot filtering.
Does Linqry count one-page visits in average session duration?
Yes, when the script measured time on the page. A one-page visit read for 40 seconds counts as a 40-second session. Visits with no measurable time are left out of the average.
Sources
- Google Analytics Help: User engagement (checked Nov 14, 2026)
Related
Funnels, goals, real-time, campaigns and revenue attribution in one app.
Send events from JavaScript or plain HTML attributes — plus the events Linqry records for you automatically.
Analytics tools disagree because each one decides differently who counts as a visitor, which requests are real, and which day an event belongs to. A gap between two tools is normal and usually explainable; the useful question is whether each tool is consistent with itself over time.
Explore a real Linqry dashboard with sample data, no signup needed.
Measure your own site without cookies
No card required · 30-day trial · No cookies