Traffic
What is a session in web analytics? Timeouts and why tools disagree
A session is one visit: activity until a timeout, and sometimes until a new campaign. Why tools disagree, with an example against users and pageviews.
The CrispStats team · · 10 min read
In short
Sessions sit underneath bounce rate, pages per session and many conversion rates. Change the session rule and those rates change, even when the clicks did not. This guide is the timeout, the campaign reset, and one afternoon counted both ways.
What is a session in web analytics?
A session is one visit: the pageviews and events from one visitor, grouped together until the visit is defined as over.
Someone opens your docs, reads two pages, and leaves. That is one session. They come back after dinner and read a third page. That is a second session, from the same person if the tool can still recognise the browser. The word visit means the same thing in most products. Google’s help page About Analytics sessions uses the same idea for GA4: a period of time during which a user interacts with your website or app. A session starts when they view a page or screen and no session is currently active.
Without that grouping, ten page loads could be ten people or one person walking a guide. With it, entry page, exit page and bounce rate have something to attach to. Visitors, pageviews and sessions compares the three counts. A session sits between a person and a page.
When does a session time out?
A session times out after a stretch of inactivity, 30 minutes by default in Google Analytics and in many other tools.
Inactivity means the tool received nothing new: no pageview, no event. The visitor can still have the tab open. Analytics cannot see a tab close in any reliable way, so the clock is a convention. Google’s sessions page says a session ends after 30 minutes of inactivity by default, and that there is no limit to how long a session can last if activity keeps arriving. The same page explains how to change the web timeout. A separate metrics page, Session, puts the maximum you can set at 7 hours and 55 minutes.
The 30 minutes is a cut point, not a claim about attention. Shorten it and a coffee break becomes a new session. Lengthen it and two arrivals an hour apart become one. Every rate on the dashboard inherits whichever cut you chose.
Does a new campaign start a new session?
Some tools start a new session when a new campaign or referrer arrives. Google Analytics 4 does not.
Universal Analytics had three ways for a session to end. Google’s comparison, Universal Analytics versus Google Analytics 4, lists them: more than 30 minutes of inactivity, the clock reaching midnight in the view’s timezone, or new campaign parameters during the visit. GA4 kept the inactivity timeout. The same page says GA4 sessions are not restarted at midnight and are not restarted when new campaign parameters are encountered.
The practical difference is a person who is already on your site and then clicks a tagged link, before the 30 minutes are up. Universal Analytics starts a second session and gives the new campaign its own visit. GA4 keeps one session, and the session keeps the source it started with, because the source is taken from the session_start event. CrispStats is closer to the older rule: a session ends after 30 minutes of inactivity, or when the visitor arrives again through a different campaign or referrer. There is no midnight cut.
A second GA4 behaviour is easy to mix up with the session count. The sessions page says session attribution uses non-direct last click. In Google’s example, an organic visit on day 1 and a direct return on day 68 can both be attributed to google / organic, under the default 90-day setting. That is which source a session is credited to. Day 68 is still its own session, because the timeout passed.
Why do session counts disagree between tools?
Session counts disagree because tools use different timeouts, different campaign rules, and, inside Google Analytics 4, an estimate of the count.
| Rule | Universal Analytics | Google Analytics 4 | CrispStats |
|---|---|---|---|
| Inactivity timeout | 30 minutes by default, adjustable | 30 minutes by default, up to 7 hours 55 minutes | 30 minutes |
| New campaign or referrer mid-visit | New campaign parameters start a new session | Does not start a new session | A different campaign or referrer starts a new session |
| Midnight in the property timezone | Starts a new session | Does not | Does not |
| How the total is computed | A count of sessions | An estimate of distinct session ids in standard reports | A count of sessions |
Google’s sessions page also says standard reports estimate distinct session ids, while a BigQuery export of the same property can count them exactly, so the two totals can differ by a small amount. The direction of a change still shows in both. A gap caused by a campaign reset is a different matter: the tools are no longer counting the same unit.
Consent, blockers and a visitor id that changes mid-visit move the total further. A tag that never fires cannot start a session. An event that keeps arriving can hold a GA4 session open for hours, because GA4 has no maximum length, only a gap.
How do sessions compare with users and pageviews?
Sessions count visits, users count browsers, and pageviews count pages, so one person can be one user, several sessions and many pageviews.
Over one day, in a tool that recognises the browser all day, sessions are at least the user count: everyone has one session, and a return after the timeout makes a second. Pageviews are at least the session count, because every session shows a page. Across many days a tool that cannot recognise Tuesday’s browser as Monday’s counts two users for one person.
Rates inherit the choice. Pages per session uses sessions as the denominator. The same conversions divided by users are a higher rate than the same conversions divided by sessions whenever people return, because there are fewer users than sessions. How often people arrived is a session question. How many browsers you reached is a user question.
What does one afternoon count as?
In this example, the same six pageviews are two sessions or three, depending only on whether a mid-visit campaign starts a new session.
This is an example with round times. It is not a report from a live site. One browser, recognised for the whole day, on a Tuesday.
| Time | What the visitor did | Minutes since the previous hit |
|---|---|---|
| 09:00 | Lands on /docs from Google | Start |
| 09:02 | Opens /docs/install | 2 |
| 09:04 | Opens /docs/api | 2 |
| 09:20 | Clicks a tagged newsletter link to /pricing | 16 |
| 09:24 | Opens /signup | 4 |
| 14:00 | Types the address and reads /blog only | 276 |
Apply a 30-minute timeout, and vary only the campaign rule:
| Rule | Sessions | How the six pageviews group |
|---|---|---|
| GA4: timeout only, a new campaign does not split | 2 | 09:00 to 09:24 is one session (the newsletter click is 16 minutes in, still inside 30). 14:00 is a second session. |
| New campaign or referrer also splits, as in Universal Analytics and in CrispStats | 3 | 09:00 to 09:04 is the Google session. 09:20 starts an email session through 09:24. 14:00 is a third, direct session. |
Users stay at 1 in both readings, because we assumed the browser was recognised. Pageviews stay at 6. Sessions are 2 or 3. Pages per session are 6 ÷ 2 = 3, or 6 ÷ 3 = 2. A conversion on /signup at 09:24 belongs to the original Google session under the GA4 rule, and to the newsletter session under the split rule. Same click, different credit, and the only thing that changed was the definition.
Universal Analytics also cut a session at midnight in the property’s timezone. GA4 does not. Google’s comparison lists that midnight cut as one reason a global audience shows more sessions in Universal Analytics than in GA4.
What is an engaged session?
An engaged session is a Google Analytics 4 label for a session that cleared a quality bar, and it is a separate count from sessions.
Google’s Session page defines it: a session that lasts longer than 10 seconds, has a key event, or has at least two pageviews or screenviews. Any one of the three is enough. Engagement rate divides engaged sessions by all sessions, and GA4’s bounce rate is the rest. The 10 seconds are a timer you can change per web stream, so two GA4 properties can disagree with each other before any other tool joins in. The engaged session entry works a numeric example. GA4 engagement rate covers the rate itself.
Do not report engaged sessions as if they were sessions. A property with 1,000 sessions and 600 engaged sessions had 1,000 visits, of which 600 passed a test. Quoting 600 as the traffic total drops every short, single-page, event-free visit, including visits that did exactly what a short page asked.
Which session number should you report?
Report sessions when the question is how often people came, and keep the tool and the timeout fixed when you compare one period with another.
- How often did people arrive is sessions. A return counts again.
- How many browsers you reached is users, with the recognition method written beside the number.
- How much they opened is pageviews. Engaged sessions are a GA4 subset, and only if the reader knows the 10-second rule.
Write the timeout next to any session rate you share. A 30-minute timeout and a 5-minute timeout are different statistics, and so is a report before and after you stop splitting on campaign.
How does CrispStats bound a session?
CrispStats ends a session after 30 minutes with no activity, or sooner when the visitor arrives again through a different campaign or referrer.
Every event in the session keeps the entry source, so a pageview deep in the visit is still credited to where the visit began. The overview shows sessions beside visitors and pageviews. There is no engaged-session flag and no midnight reset. A bounce, in this product, is a session with one pageview and no custom events, which is a statement about the session’s contents rather than about a 10-second timer.
Terms in this guide
Free tools
- Bounce rate calculatorCalculate bounce rate from sessions, under the classic single-page rule or the GA4 definition, and see how many bounces stand between you and a target.
- Engagement rate calculatorCalculate engagement rate the GA4 way for a website, or the social media way for a post by reach, impressions or followers, and see why the two differ.
- UTM builderBuild UTM-tagged links one at a time or in bulk from pasted rows, with presets, checks for capitals and spaces, CSV export and a channel preview.
More guides
All guides- Traffic · 10 minUnique visitors vs pageviews vs sessions: what each one countsUnique visitors count people, sessions count visits, pageviews count pages. How each is measured, a worked example, and why your tools disagree on the totals.
- Setup and data · 10 minGA4 vs Universal Analytics: what changed and why the numbers differGA4 replaced Universal Analytics in 2023 with an event model. What changed in users, sessions, bounce rate and goals, and why the numbers differ.
- Engagement · 11 minGA4 engagement rate vs bounce rateGA4 engagement rate is engaged sessions divided by all sessions. Google's definition, a worked example, the 10-second timer and why bounce rate is its mirror.