: How is time spent on page measured? How do analytics applications (like StatCounter or GoogleAnalytics) measure time spent on page? Is that possible without JavaScript? I guess they reloading
How do analytics applications (like StatCounter or GoogleAnalytics) measure time spent on page? Is that possible without JavaScript?
I guess they reloading 1x1 web-bug or something after certain amount of time, am I right?
More posts by @Pierce454
2 Comments
Sorted by latest first Latest Oldest Best
There is a JavaScript event called onunload, which is called when the page is closed or the back button is clicked. Using that combined with an event listener for keyboard or mouse inputs should give a fairly accurate time-on-page analysis for users with JavaScript enabled.
For users without JavaScript, you're probably left to comparing timestamps and referrers between internal pages.
You could use a web-bug, AJAX tag or an iframe with a refresh meta tag, but those still don't really account for tabbed browsers or people who have multiple browser windows open (or people leaving their desk with a window open).
The Nielson meter supposedly gives credit only to the in-focus tab/window and measures mouse/keyboard activity so that if there's more than 30 minutes of inactivity, only 1 minute is credited. But this requires each user to install desktop software.
You could also potentially estimate time spent with only log file analysis. But that requires setting an abandonment threshold so that if, say, there is over 30 minutes between requests, then you assume the user abandoned the first page after a minute. Ideally, you'd analyze the page content to determine what the abandonment threshold ought to be. E.g. if it's a long, unpaginated article that takes 30 minutes to read, then you might make the abandonment threshold bigger than a page that just has contact info on it.
But without installing some kind of desktop client, it would be very hard to get accurate measurements.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.