Welcome Guest, Not a member yet? Register   Sign In
Track user time spent on web pages
#2

[eluser]bretticus[/eluser]
An easier and more accurate way would be to store it in a database table. Use sessions to keep track of the user. Measuring time is then just a comparison of the times for adjoining database records.

If you want to keep the js route. Look into the javascript onunload event of jquery unload. You could, perhaps, hijack the url as you leave or call an ajax routine. Like I said, the former is easier Smile

Good luck!

EDIT: google analytics and omniture, etc. have the page call some javascript url at their websites. Assuredly, this timestamp is stored it in a database also.


Messages In This Thread
Track user time spent on web pages - by El Forum - 10-14-2009, 06:13 PM
Track user time spent on web pages - by El Forum - 10-14-2009, 10:27 PM
Track user time spent on web pages - by El Forum - 10-15-2009, 12:42 AM
Track user time spent on web pages - by El Forum - 10-15-2009, 04:16 AM
Track user time spent on web pages - by El Forum - 10-15-2009, 09:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB