How to track user time on site
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? Dmytro Krasun You can get the time in next ways: Once user visit your site, save current time at cookie as "visited", and at next visit you can grab it, if it was set. And more expensive method: when the page loads, start js timer, and on page unload send to server time which user sent and save it to db. And if window.unload does not work at Opera, you can send time to server every 5 seconds, and stores it to DB. If you need, I can