Possible Duplicate:
How to measure a time spent on a page?
I am trying to get the time spent on some of the pages in my site. One way I am thinking to implement is polling the server with ajax request every 10 sec , but this would mean a lot of request for the server.
Is there any better way to implement the feature ?
Thanks.