Document.referrer does not work properly

Asked

Viewed 246 times

0

I am using the "Document.referrer" statement to perform some actions on my website, but I have noticed that in some situations, Document.referrer is empty, even coming from an HTTP domain.

Question:

  1. In what situations could Document.referrer be coming to me empty? (except for references coming from HTTPS)

  2. How can I resolve this referrer issue without the need to send parameters in my querystring?

  3. What would be the best solution to get the referrer, since through my GA when accessing the referral site and click on the link that redirects to my site, the referral is correct(GA) but Document.referrer is empty?

From now on I thank you all!

  • Provide an example of the problem, read: http://answall.com/help/mcve :)

  • Make a jsFiddle that plays the problem so we can help better.

1 answer

0

In normal situations, the referrer only nay will be empty when the page is loaded from a link or requested from another page; or, under these conditions, the page is reloaded (reaload).

Documentation on referrer at this link.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.