TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What is time on page?

Time on page is how long a visitor stayed on a page before going to another page, hiding the tab or closing it. Dwell time is the same idea seen from a search result.

Lin Zhou Reviewed by Su He Last updated Oct 28, 2026 Glossary

Quick answer

Time on page is the time between a page being shown and the visitor leaving it — by opening another page, switching away from the tab or closing the browser.

Formula: average time on page = total measured time on the page ÷ pageviews with a measured time

What it measures

Time on page is meant to show attention: did people read the article, study the pricing table, watch the video? It is measured per pageview and then averaged across views of the page.

Dwell time is a related term from search: the time between clicking a search result and coming back to the results. Search engines do not publish how they use it, and you cannot see it directly in analytics, but long time on page from organic visits is a fair proxy.

The last-page problem

Older analytics tools worked out time on page by subtracting timestamps: the time of the next pageview minus the time of this one. That works for every page except the last one in a visit, because there is no next pageview. So:

  • Single-page visits had a time on page of zero, however long the person read.
  • The last page of every visit was left out of the average, which skewed blog posts and help articles — the pages most often read last.

Modern scripts fix this by sending a signal when the visitor leaves: when the page changes, the tab is hidden or the page is closed. The time measured up to that point is recorded for the page, last page included.

A worked example

An article had four views yesterday:

  • Visitor A read for 4 minutes and clicked to a related article.
  • Visitor B read for 6 minutes and closed the tab.
  • Visitor C left after 3 seconds.
  • Visitor D read for 2 minutes, then switched to another tab and never came back.

With subtraction only, B and D have no next pageview and get no time: average = (240 + 3) ÷ 2 ≈ 2 minutes. With leave signals, all four count: (240 + 360 + 3 + 120) ÷ 4 ≈ 3 minutes. Same readers, same behaviour — the second number is the one that matches what happened.

How TapCub measures it

The TapCub script records how long each page was open and reports it when the visitor moves to another page (including route changes in single-page apps), hides the tab or closes it. That means single-page visits and the last page of a visit have a real duration.

A few rules keep the number clean: stays under one second are not reported, a single page's duration is capped at six hours, and a tab left in the background for more than 30 minutes starts a fresh pageview when it is opened again rather than adding the idle time. Average time appears in the pages report next to pageviews, visitors and exits. The same signal also extends the session, which is how a visitor who reads one page for more than 10 seconds becomes an engaged session.

Common mistakes

  • Comparing averages across tools. Whether the last page and single-page visits are included changes the number a lot.
  • Assuming longer is better. On a checkout or a help article meant to give a quick answer, a long time can mean confusion.
  • Reading the mean only. A few tabs left open for hours can pull the average up. Compare with the share of short visits, or with scroll depth, before drawing conclusions.
  • Mixing it with session duration. Session duration covers the whole visit, all pages. Time on page is for one page.

Related guides: Average Session Duration and Content Performance Metrics.

Was this explanation clear?

We use your answers to fix and expand this page.

Lin Zhou

Product Experience Specialist

Writes about product experience, practical workflows, and growth, turning complex processes into clear steps for everyday decisions.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

Is time on page the same as session duration?

No. Session duration runs from the first to the last activity of a visit across all pages. Time on page is measured for each page separately.

Why is my time on page zero for some pages?

In tools that use timestamp subtraction, the last page of each visit gets no time, so pages often read last can show zero or very low averages. Tools that send a leave signal do not have this gap.

What is a good average time on page?

Compare it with how long the page takes to use. A 1,500-word article takes about six minutes to read; an average of 40 seconds says most people skim. A pricing page needs far less.

Does time spent in another tab count?

A short switch away and back usually does, because the page is still open. In TapCub, a tab left in the background for more than 30 minutes counts as a new pageview when it comes back, so long idle periods are not added.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics