how do you detect if your website visitor came from a google search result?

前端 未结 6 470
粉色の甜心
粉色の甜心 2020-12-03 16:06

when a user searches from google and lands on our site from the results he/she was shown in the results page, is there a way for my site to detect that he came from google?<

6条回答
  •  一生所求
    2020-12-03 16:38

    It looks like you can use the $_SERVER['HTTP_REFERER'] variable. But I think the value is controlled by the client and can't always be guaranteed to exist or accurate.

提交回复
热议问题