Shahin

Time on Page

Beginner
Updated Jul 11, 2026 Shahin editorial 3 min read
PronunciationEN/taɪm ɑːn peɪdʒ/

Time on page is how long a user stays on a page, classically derived from the gap between that page loading and the next tracked hit in the same session.

That mechanism creates the main limitation: with no following hit there is nothing to subtract, so the last page of every session and every single-page session is zeroed or dropped, biasing the average upward. Newer implementations fix this by measuring foreground time directly, through periodic heartbeats or the pagehide and visibilitychange events, and GA4 reports engagement time instead of time on page, which is why two tools can give very different numbers for the same page. In the classic method an abandoned background tab still accrues time even though nobody read anything. Interpretation is not one-directional either: a high number can mean interest, or it can mean a user who cannot find the answer.

How it is calculated

Time on page = timestamp of the next hit − timestamp of the page load

The calculation only works for views that have a following hit in the same session; exit pages fall out of the average and the unit is seconds.

FAQ

Sources:MDN — Document: visibilitychange event