Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

measure time spent on a web page [duplicate]

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.

like image 794
Prabesh Shrestha Avatar asked Dec 21 '25 07:12

Prabesh Shrestha


1 Answers

Could you not just use a single AJAX request to inform the server of the page unload event?

like image 132
Nev Stokes Avatar answered Dec 22 '25 21:12

Nev Stokes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!