Forum Moderators: open

Message Too Old, No Replies

Differentiating Refresh from Exit using Java

         

maureen

5:38 pm on Jul 15, 2009 (gmt 0)

10+ Year Member



Help. My team is building a reporting interface and have loaded java on site pages to capture user activity. We are trying to figure out how to differentiate between refresh and site exit for reporting puposes.

whoisgregg

10:34 pm on Aug 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello Maureen,

I'm not aware of any way to tell the difference between a refresh and a site exit using javascript. However, if you are tracking users across multiple pages, looking at the timestamps of visits should allow you to set a reasonable window of time between page loads as meaning either "they were still on the site" or "they left and came back."

You could also add some kind of polling to your javascript to basically ping the server every couple minutes if they still have the page open.

HTH :)