Welcome to WebmasterWorld Guest from 54.159.214.250

Forum Moderators: DixonJones & mademetop

how statcounter script works

   
6:02 am on Jul 27, 2009 (gmt 0)

5+ Year Member



Hi,

I was wondering how popular statcounter script captures the referral links, i mean in target page we have Statcounter Javascript loaded and once the referral page is vanishes target page opens up and Statcounter script is executed in this situation how it remember this previous page

1:12 pm on Jul 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's the programming in the browser itself. Most browsers are programmed to keep the previous file's (page's) address, in most circumstances. However there are many exceptions when the previous page is NOT kept by the browser when it requests a new file. Do a search on "direct traffic empty referrer" or something like that to get a lot of information about this. For info on standards about how browsers are supposed to act, see a site like W3C's.

Statcounter itself doesn't have much intelligence.

6:01 pm on Jul 27, 2009 (gmt 0)

5+ Year Member



"Statcounter itself doesn't have much intelligence." Agreed, it's low on the list of free providers.

The javascript used to get the referring page is simply:


document.referrer
 

Featured Threads

Hot Threads This Week

Hot Threads This Month