Engagement
Time on page explained: why the last page has none, and engagement time
Time on page often cannot time the last page of a visit. Average engagement time measures focus instead, including that last page. A worked example shows both.
The CrispStats team · · 10 min read
In short
Time on page is where a dashboard sounds precise and is often guessing. A reader who finishes an article and closes the tab can show zero. A reader who leaves the tab open during lunch can show an hour. Both results come from a real method. They come from different methods, and mixing them is how a redesign gets credit or blame for a change in the clock rather than a change in the page.
What is time on page?
Time on page is an estimate of how long a visitor spent on one page, and the estimate depends on which clock the tool uses.
Visit duration and engagement time are the same family, applied to a whole visit rather than one page. None of them is a stopwatch the visitor started. The tool infers a duration from the hits it received, or from time the browser reported while the page was visible.
Why does the last page of a session have no time on page?
In tools that subtract timestamps, the last page of a session has no time on page, because nothing happens after it for the tool to subtract.
The older method stores the time of each hit and defines the time on a page as the gap until the next hit. Page one at 10:00 and page two at 10:04 means four minutes on page one. The page the visitor leaves from has no next hit. There is no gap to measure, so that page contributes no time on page. A session with a single page has no gap at all, and the duration is zero, however long the person actually read.
Universal Analytics calculated session duration on that pattern. Google’s help page on average session duration says that when the last page has no engagement hit, duration is the time of the first hit on the last page minus the first hit on the first page. Their example is a visit with hits at 10:00, 10:05 and 10:10, and a duration of 10 minutes. The minutes the visitor then spent on the third page are outside the total. The duration stops when the last page starts, not when the visitor leaves it. If an engagement hit does fire on the last page, the same page says the duration runs to that hit instead. A video play at 10:15 would make the example 15 minutes. Closing the tab still sends nothing, unless something on the page fires as they go.
That is why a popular article can show a lower average time on page than a thin page in the middle of a flow. The article is often the last page, so it is the page the method cannot see. The thin page always has a next click, so it always has a gap. The method rewards pages people pass through and undercounts pages people finish on.
What is average engagement time?
Average engagement time is the average of time a page was in focus, or an app was in the foreground, which is the duration Google Analytics 4 reports.
Google’s help page on user engagement defines user engagement as the time someone spends with your web page in focus or your app screen in the foreground. The timer starts with the session. The elapsed time is sent, in an engagement_time_msec parameter, when the visitor moves the app to the background, focuses away from the page, navigates away, or the site or app crashes. Time after the page has lost focus is not part of that send. A tab left open behind another window does not keep adding minutes.
The page says Google uses this to populate the User engagement metric and Average engagement time. The average still depends on what you divide by. The same pile of focused seconds, divided by sessions, is a per-visit figure. Divided by users, it is larger whenever one person has more than one session. The glossary entry on average engagement time separates those two. Read the column name before you compare a Pages report with an acquisition report.
How does engagement time differ from time on page?
Engagement time includes the last page and skips time in a background tab. Timestamp time on page does the opposite on both points.
| Row | Timestamp time on page | Engagement time |
|---|---|---|
| Clock | Gap from this hit to the next hit | Time the page was in focus, reported by the browser |
| Last page of the session | No value, unless a later hit fires on it | Included, because leaving sends the time |
| Single-page visit | Zero in the classic session duration | The focused time on that page |
| Tab in the background | The gap keeps growing if the next hit is late | Paused while the page is not in focus |
| What a long average suggests | A long gap between hits, including lunch | A long time with the page actually in front of someone |
The background-tab case is the one that makes timestamp averages look heroic. A visitor opens a pricing page, switches to a meeting for 40 minutes, and then clicks through. The gap says 40 minutes on pricing. Focus time says a few minutes.
What does one visit count as under each method?
In this example, timestamp time on page records 7 minutes across two pages and drops the last page, while focused time records 9 minutes across all three.
This is an example with round minutes, not a measurement from a real site. One session, three pages, one person.
| Page | Arrived | Next event | Of which the tab was in the background |
|---|---|---|---|
| Guide | 10:00 | Pricing at 10:04 | None |
| Pricing | 10:04 | Signup at 10:07 | None |
| Signup | 10:07 | Tab closed at 10:10 | The last 1 minute |
Timestamp method
Time on page is the gap to the next pageview. The guide gets 4 minutes. Pricing gets 3 minutes. Signup has no next pageview, so it has no time on page. The pages you can measure sum to 7 minutes. An average that simply skips the blank page is (4 + 3) ÷ 2 = 3.5 minutes, and the signup page does not move it. An average that treats the blank as zero is (4 + 3 + 0) ÷ 3 = about 2.3 minutes. Tools differ on that last step. Session duration in the Universal Analytics sense, with no engagement hit on the last page, runs from 10:00 to 10:07: 7 minutes, ending when signup was opened.
Focus method
The guide was in focus for 4 minutes, pricing for 3, and signup for 2 (three minutes on the page, one of them in the background). Total focused time is 4 + 3 + 2 = 9 minutes. Average engagement time for this one session is 9 minutes. Signup is included. The background minute is not. If this person had a second session with 1 focused minute, the per-session average across both visits would be (9 + 1) ÷ 2 = 5 minutes, and a per-user average would be 10 ÷ 1 = 10 minutes. Same seconds, different denominator.
Put the two clocks side by side and the story changes. Timestamp time says the visit was 7 minutes and says nothing about signup. Focus time says 9 minutes, of which 2 were on the form.
When is a short time a good result?
A short time is a good result on a page whose job is to answer quickly, such as a contact page, a docs answer or a confirmation.
A phone number someone needed, a single API parameter, and an order confirmation are all successes when the visit is brief. Lengthening them would mean the page got harder. The same 20 seconds on a long essay, or on a pricing page you hoped people would compare, is a different finding: they may have decided it was not for them, or the page may have failed to load the part they needed.
Under the classic definition a single-page visit is a bounce even when someone read for ten focused minutes, so engagement time and bounce rate can both be high on the same page. Bounce rate and engagement compares the definitions. In GA4 a session becomes engaged after 10 seconds of focus, a key event, or a second page, which GA4 engagement rate covers.
What should you pair with time on page?
Pair the duration with the page’s job, how far people scrolled, and whether they converted. A long time can mean interest or a stuck visitor.
- Scroll depth tells you whether the minutes happened near the top or further down. A long time at a shallow scroll is a tab left open, or a page that never drew anyone past the introduction. Scroll depth is the companion measurement.
- The next page, or the lack of one, tells you whether the time ended in the action you wanted. A pricing page with a long focused time and no signup is a different problem from a pricing page with a short time and a signup.
- The source tells you whether the audience was the one you wrote for. A long time from organic search and a short time from a mismatched ad can share one site-wide average and cancel out.
- A handful of extremes. One visit focused for an hour moves a small page’s average more than a hundred ordinary visits. Read the average beside the number of visits. A page with 30 visits and a striking duration is an anecdote.
How should you compare tools?
Compare durations only inside one tool. A timestamp average and a focus-time average are different measurements of the same visits.
Name the clock when you share a number: gap between hits, or time in focus. Timestamp blanks on exit pages are the method. Moving from Universal Analytics session duration to GA4 engagement time changes the number with no change in behaviour. Read it per page and per source, because a site-wide average hides the page you would actually edit.
How does CrispStats measure the time?
CrispStats measures seconds the page was actually visible, and it includes the last page of a visit.
The script keeps a running total while the page is visible and sends it when the page is hidden or left, and before each single-page navigation. A background tab adds nothing. Average visit duration is that visible time divided by sessions. There is no per-user average. A long single-page read is still a bounce if it had one pageview and no custom events: duration and bounce answer different questions.
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.
- Analytics cost calculatorPick a monthly volume and compare list prices of privacy-friendly analytics tools at that exact volume. Dated, and never estimated between tiers.
Use cases
More guides
All guides- 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.
- Engagement · 9 minBounce rate vs engagement: what to watchBounce rate means different things in different tools. What it measures, when a high number is fine, and the engagement signals that tell you more.
- Engagement · 11 minScroll depth tracking: a practical guideScroll depth is how far down a page a visitor got. How tools measure it, GA4's 90% event, tracking milestones yourself, and how to read the numbers honestly.