php - How to keep a "referrer" attribute through all the links of a website?Get the solution ↓↓↓
Some of my visitors arrive on my website with a "partner referrer" attribute in their URL, like this one:
I would like to keep this attribute throughout their visit, and even insert it into the Google PlayStore URL if they click the "Download" button.
Is there a way to automatically forward the attribute "referrer" (if it exists) through all the links of a website? Or do I have to do it manually in PHP?
$referrer = $_GET['referrer'];
Store the referrer in the session and then apply it to external URLs as needed. Otherwise, you'll need to manually add it to each URL, which would be tedious.
Share solution ↓
Link To Answer People are also looking for solutions of the problem: port 80 in use by "unable to open process" with pid 4!
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.