brokenlink Posted February 20, 2007 Share Posted February 20, 2007 I am searching for a way to track and send the amount of time a user spends on each web page. Any good ideas? Thank you. Link to comment https://forums.phpfreaks.com/topic/39312-track-time/ Share on other sites More sharing options...
ToonMariner Posted February 20, 2007 Share Posted February 20, 2007 too many methods to mention.... just record their ip address against the current time (timestamp will do) and something that will identify the page they are on (use which ever value in the $_SERVER super global array suits your needs i.e. 'REQUEST_URI' or 'QUERY_STRING' - what ever identifies the page uniquely.) Link to comment https://forums.phpfreaks.com/topic/39312-track-time/#findComment-189523 Share on other sites More sharing options...
brokenlink Posted February 20, 2007 Author Share Posted February 20, 2007 so... ip + time webpage is opened minus ip + time next webpage is opened equals time spent on previous page Is this the general idea? Link to comment https://forums.phpfreaks.com/topic/39312-track-time/#findComment-189571 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.