Thursday, 5 September 2013

Not able to capture referrer using javascript document.referrer in some cases

Not able to capture referrer using javascript document.referrer in some cases

We are trying to capture referrer using javascript code document.referrer.
But in some cases we are getting wrong output.
In my case open Google.de and then searched for "zalando" and then click
on a Paid Search Ad. When I landed on the page it should have actually
showed "Google.de" as the referrer but instead it is showing us
"zalando.de". Please find attached screenshot for reference.
Hope this is something related to website. But I am more surious to know
the following things:
Why document.referrer is not working in my case?
What are the techniques that website owners are following to change the
referrer?
Is there a way to get correct referrer using javascript in above case?
Help would be appreciated :)

No comments:

Post a Comment