title: measure time spent on a web page
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4667068/how-to-measure-a-time-spent-on-a-page">How to measure a time spent on a page?</a>  </p>
  </blockquote>
  
  
  
  <p>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.</p>
  
  <p>Is there any better way to implement the feature ?</p>
  
  <p>Thanks.</p>