Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

how statcounter script works

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

Junior Member

5+ Year Member

joined:Apr 12, 2007
posts: 134
votes: 0


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 July 27, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 14, 2004
posts:1107
votes: 1


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 July 27, 2009 (gmt 0)

New User

5+ Year Member

joined:July 21, 2009
posts:15
votes: 0


"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