0
I know it’s possible to get the visitor’s previous url with $_SERVER['HTTP_REFERER'];
but how do I take for example the source/media that the visitor was before accessing the site?
For example, it came from: Google/Organic, Google/CPC (paid), Bing/Organic, Bing/CPC, Direct/None, facebook/referral, youtube/referral, other sites/referral, etc .
I appreciate help
What you call "source/media" that is not in the referrer?
– Bacco
@Bacco thanks for the contribution. I found the solution, I created an answer
– Gislef