Free online tools to generate, calculate,
convert, format, encode, and play.
 

Time on Page Tracker

Measure user engagement with a live demo tracker and generate a lightweight snippet to add time-on-page tracking to your website.


Live Demo

This page is being tracked right now. Interact with it to see how engagement metrics change in real time.

Active
0:00
Total Time
0:00
Active Time
0:00
Idle Time
0:00
Hidden Time
Scroll Depth 0%
Max depth: 0% Interactions: 0
Event Log
Tracking started...

Snippet Generator

Configure and generate a lightweight tracking snippet to add to your website. No external dependencies required.

Idle timeout
Seconds of inactivity before marking user as idle
Track scroll depth
Record maximum scroll position
Track visibility changes
Detect when user switches tabs or minimizes
Track interactions
Count clicks, key presses, and touch events
Callback function name
Called with metrics on page unload

How It Works

Time on page (also called dwell time) is a key user engagement metric that measures how long a visitor spends on a specific page. This tool tracks three distinct states and provides scroll depth as an additional signal.

Tracked States
  • Active time — the user is interacting with the page (mouse movement, clicks, scrolling, key presses, touch events)
  • Idle time — the page is visible but the user has stopped interacting for longer than the idle timeout threshold
  • Hidden time — the browser tab is not visible (user switched tabs, minimized the window, or locked the screen)
Scroll Depth

Scroll depth tracks the furthest point a user has scrolled on the page as a percentage of the total scrollable height. High scroll depth combined with long active time indicates strong content engagement.

Why It Matters for SEO
  • Dwell time signal — search engines use time on page as an indirect ranking factor; longer times suggest content relevance
  • Bounce rate correlation — very short times often indicate a bounce, which can hurt rankings
  • Content optimization — identify which pages engage users and which lose them quickly
  • UX insights — idle vs active breakdown reveals whether users are reading or just left the tab open
How Detection Works
  • Uses the Page Visibility API to detect tab switches
  • Listens for mousemove, click, scroll, keydown, and touchstart events to detect activity
  • A configurable idle timer marks the user as idle after a period of no interaction
  • All tracking runs client-side with zero external requests

Embed This Util

You can embed this util on your own site as a widget. Adding ?embed=1 to the URL loads a compact version with just the tool itself; no header, menu, or documentation. Paste this snippet into your HTML:


    

Copy snippet Adjust the height to taste.



Feedback

Help us improve this page by providing feedback, and include your name/email if you want us to reach back. Thank you in advance.


Share with