I have website domain1.com and domain2.com. Suppose a user gets to domain1.com from theoriginalreferrer.com then clicks on a link to domain2.com.
In this scenario, I'd like to pass on the referrer of domain1.com to domain2.com - ie I would like the document.referrer of domain2.com to show theoriginalreferrer.com instead of domain1.com. Is this possible?
I realize one option is to simply add a query string to the link to domain2 to be domain2.com?referrer=... and inject the existing document.referrer from domain1. This is not ideal for my situation and I'd prefer to be able to somehow directly affect domain2's document.referrer when a link is clicked on domain1.com