3
I need a function that shows me the visitor’s origin url of my page. I have tried $_SERVER['HTTP_REFERER']
, but it only seems to work when the source comes from a clicked link.
Currently I work with an affiliate system, which sends customers to my site through links created by the system itself (Before actually being directed to my website, the client goes through the affiliate program server, in order to register this client and who was the affiliate that indicated. Because in the case of a sale made, the affiliate system pays the commissions due).
I’m taking my platform out of this affiliate system, but as there are already many affiliate links posted on the internet, I would like to take advantage of these links to not lose sales.
An example of an affiliate system link is http://edzz.la/LQPZ4?a=656180
As I will no longer use this system, I would like my page to acknowledge that the visitor is from link
/url
. So that I can know who is the affiliate who is indicating this visitor.
I don’t know if it suits you, but if your intention is just to keep the Authority of your link that already has a good placement by Google for example, you can make a "301 redirect" to the new link. Google Anaytics tb indicates where your traffic is coming from in general. Some tools like Alexa tb record these Backlinks
– hugocsl