I have web site and want to find the total time each visitor spent(after login) on my site's specific php page eg.www.mysite/profile.php. How i do it ? thanz in advance

Recommended Answers

All 2 Replies

Member Avatar for Rhyan

I have web site and want to find the total time each visitor spent(after login) on my site's specific php page eg.www.mysite/profile.php. How i do it ? thanz in advance

You need the time from the login till log out, or time spent on each page?

If you need from log in till log out - you can do it with php and date functions quite easy.

If you need time spent per page, either logged on or not, you can run a javascript counter and record the counter reading after the page changes.

My site [ Free2Step ] doesn't have a login. I also want to track how much time user spent on specific pages. Any help will be appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.