View Single Post
Old 02-14-2005, 02:42 PM  
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
Quote:
Originally Posted by qw12er
basically I'm trying to monitor everything my surfers do on my web site. (Where they clic, which cat. they prefer etc ... ) Since I don't want to generate a lot of traffic to my database I want to use the surfers computer as much as possible. So the idea is to do as much gathering as possible in Javascript and when the surfer close it's browser (or quit my page) send the information to a php script on my server which will insert the info into my database.
I'm not sure I get it quite right, but it seems to me that your server and database will do the same amount of work either which way, just at a different time in the page load. And if this is the case, then perhaps caching stats? Writing to a file? sessions and then session dumping after?
I dunno... just seems like having javascript do stuff when they close their browser will result in a LOT of lost data and won't save much if anything on serve load.
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote