How do you collect data? Common parameters will be tools for the page using javascript, viewing web server log files, in a server-side request handler, or sniffing TCP / IP traffic.
Doing this, like Google Analytics, implies the first. In this case, the way to do this is to grab the timestamp as soon as possible when the page loads (rather than waiting for the page ready event / onload event) and compare this value with the previous tiestamp (so you would probably save this in a cookie). Then you need to somehow send this server server, as well as a way to record and report data.
Please note that an attempt to launch an ajax call when the user leaves the page, for example, via onunload , will not work reliably (the page that launches the request is at the end of the life cycle). The ASYNCHRONIC part is important here. And making a synchronous call will simply be the effect of slowing down the website.
, Yahoo Boomerang - , . , Graphite