How to implement this chip?

Basically you need statistics requests from google.

Closed due to the fact that the issue is too common for Kromster , HamSter , aleksandr barakin , katso , iluxa1810 Nov 18 Nov '16 at 23:41 .

Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .

    2 answers 2

    I read about it ... In general, it was quite realistic when google worked via http. The request could be obtained via HTTP_REFERER. Now, when it works via https, the referrer is not transmitted. So, as far as I understand, there is no way. But such a chip is quite possible with Yandex.

    Yes, the method for Yandex (well, for old Google) is described in this article . I will not copy it all here, I hope it’s not difficult for you to follow the link.

      Google Analytics, their API and Traffic Sources / ga: keyword ?

      If you are using a visitor

      GAPI php interface