I\'m looking to track users average time on a website (in the same way that Google analytics does) for internal administration.
What\'s the easiest way to do this?
Use timeonsite JS for web and mobile browsers. It tracks time on site accurately.
At the page end, call
As simple as that,
It seems to work even in mobile browsers like IPhone, IPad, mobile Safari etc. that doesn't support window.unload() events natively.