Skip to content
Glossary

Time on page

Time on page is how long a visitor spends on one page before opening another, switching away or closing the tab. Timing the start is easy; timing the end is where tools differ.

Updated

Also called: average time on page, time spent on page, page view duration

Definition

Time on page is the time between a page being shown and the visitor leaving it. Averaged over many views, it hints at whether people read a page or skim past it. It also feeds average session duration.

How it's calculated

The classic method subtracts timestamps: the next page view marks the end of the current one.

time on page         = time of the next page view − time of this page view
average time on page = total time on page / page views with a measured time

Example (illustrative numbers): a visitor opens /pricing at 10:00:00 and /signup at 10:01:30. Time on /pricing is 90 seconds. Time on /signup is unknown under this method, because no later page view marks its end.

The exit-page gap

Every visit ends on an exit page, and a timestamp-only method can't time it; one-page visits get no time at all. There are three common workarounds:

  • A leave beacon. The script sends the elapsed time when the visitor hides or leaves the page.
  • Engagement time. Only time with the page in focus counts. Google Analytics 4's Pages and screens report shows average engagement time: total engagement time divided by active users, which makes it a per-user figure rather than a per-view one.
  • Exclusion. Views with no end time are dropped from the average, which tilts it toward pages people click through.

What Linqry records

Linqry's script uses a leave beacon. When a visitor opens another page (including a route change in a single-page application), switches to another tab or app, or closes the page, the script sends a pageleave event with the milliseconds since that page view. It's sent once per page view, so time after the visitor returns to a hidden tab isn't added to that page.

The measured time feeds the Session figure in the dashboard's top row, the average session length. That's why a one-page visit read for 40 seconds counts as a 40-second session rather than zero. pageleave is kept out of the live event feed and the custom event tables, because it isn't an action the visitor chose.

Pitfalls

  • Background tabs. Tools that don't stop the clock when a page is hidden count a forgotten tab as a long read.
  • Short isn't always bad. A help page that answers the question in ten seconds did its job.
  • Outliers. A few very long views lift the average. Compare a page with its own history.
  • Different clocks. Leave beacons, engagement time and timestamp gaps produce different numbers for the same visits, so don't compare tools on this metric.

Related terms

Frequently asked questions

Is time on page the same as engagement time?

Not quite. Time on page usually runs from the page view until the visitor leaves. Engagement time counts only the time the page was in focus or in the foreground, so it is usually shorter.

Does Linqry measure time on page in single-page apps?

Yes. Each route change sends the time spent on the previous route before the new page view is recorded.

Sources

  1. Google Analytics Help: [GA4] Pages and screens report (checked Nov 14, 2026)
  2. Google Analytics Help: User engagement (checked Nov 14, 2026)

Measure your own site without cookies

No card required · 30-day trial · No cookies