document.referrer does not work correctly

0

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

Question:

  • In which document.referrer situations could be coming to me empty? (with the exception of references coming from HTTPS)

  • How can I resolve this referrer question without the need to send parameters in my querystring?

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

  • Thanks in advance!

        
    asked by anonymous 21.02.2015 / 14:23

    1 answer

    0

    In normal situations, referrer will not will be empty when the page loads from a link or requested from another page; or, under these conditions, the page is reloaded.

    Documentation on referrer this link .

        
    15.11.2017 / 02:48