You have been active on this page for

0 seconds

Demo

Notice the timer above? It is tracking how long you are actively viewing this web page. It is smart enough to stop incrementing when you minimize the browser or if you switch to a different tab. Try it out! It also stops incrementing if you go idle for more than 5 seconds (meaning you don't move the mouse or enter the keyboard for 5 seconds). While 5 seconds is a relatively short time to gauge inactivity, it can be increased to a more realistic value (such as 60 seconds) to determine that a user is no longer viewing the page and has left the browser or computer altogether.

Tracking specific elements

TimeMe allows you to track how users are interacting with specific elements on your page. If you go idle, the timer also stops.
Interact with this element

Interaction: seconds.
Interact with this element

Interaction: seconds.

TimeMe.js

TimeMe.js is a JavaScript library that accurately tracks how long users interact with a web page. It disregards time spent on a web page if the user minimizes the browser or switches to a different tab. This means a more accurate reflection of actual 'interaction' time by a user is being collected.

Additionally, TimeMe.js disregards 'idle' time outs. If the user goes idle (no page mouse movement, no page keyboard input) for a customizable period of time, then TimeMe.js will automatically ignore this time. This means no time will be reported where a web page is open but the user isn't actually interacting with it (such as when they temporarily leave the computer).

Furthermore - TimeMe supports tracking time for specific elements within a page. This means you can track and compare usage of different parts of the same web page. Multiple concurrent timers are supported.

These components put together create a much more accurate representation of how long users are actually using a web page.

Where do I get TimeMe.js?

You can download the most recent copy at the TimeMe Github project.