Can organic search visitors count?

2

I wonder if there is any tool / api to know from which website the visitor came to, to account visitors coming from the search engines. Thank you all.

    
asked by anonymous 06.10.2016 / 21:51

1 answer

2

HTTP_REFERER

  

'HTTP_REFERER'

     

The page address (if any) through which the user agent accessed the current page. This policy is informed by the user agent. Not all browsers generate this header , and some still have the ability to modify HTTP_REFERER content as a resource. In a nutshell, it is not reliable.

Just use as below, but do not rely on these data.

$origem = isset( $_SERVER['HTTP_REFERER'] ) ? $_SERVER['HTTP_REFERER'] : null;
    
06.10.2016 / 22:27