I\'ve noticed that if a foreign https: site links to my non-https site, that I don\'t get anything in the HTTP Referer header at all. I\'ve experienced this with <
https:
To get the document.referrer, You can use either of the options below:
document.referrer
You Need to convert your HTTP site to HTTPS.
Or you can add the below simple meta tag in your HTTPS site.