How to wind the counter Google Analytics or Google hates Kazakhstan

    Good afternoon.

    I think many have read the story about Katya , I decided to write in the same style, i.e. information about why Google hates Kazakhstan will be in spoilers.

    So.

    Background.
    Once I study statistics in the Google Search Console, I noticed that another item appeared in the "View in Search" section, this item led to a report on indexed AMP pages.

    Having visited this page, I saw an inscription.
    image
    Of course, I immediately wanted to know what kind of accelerated mobile pages these are. Following the link, I saw a guideline for creating AMP pages. After reading the guideline, I started creating amp pages on my site.


    History
    After reading the documentation for creating AMP, I immediately started implementation.
    Google hates Kazakhstan
    After I prepared all my pages, I waited for the official launch of AMP, it was supposed to be on February 24, and it started on February 24, but Kazakhstan was not included in the list of countries for which AMP versions of pages will be displayed in the search. And nowhere was this written. And nowhere is it written when AMP in Kazakhstan will be available.
    Probably because ...
    Google hates Kazakhstan

    An hour later, I had ready AMP versions of my pages. But there was a problem, I could not insert Google Analytics, because JS scripts cannot be inserted into AMP pages, and the amp-analytics component did not exist yet, but there was an amp-pixel component .
    Googling a little, I came across this question on Stackoverflow.
    Here they suggested inserting a pixel with the following url that passed the desired value to Google Analytics

    This picture transmitted a unique user ID, the title of the article and the link specified in About the transmitted parameters can be read here , to be honest, I have not read it myself

    Google hates Kazakhstan
    Because I work in the online media editorial office, all methods of attracting traffic are important to us. One of the main channels for other media is Google News. But in Google News there is no way to select news from Kazakhstan. Damn, there is even news from Ethiopia and Kenya !!! And from Kazakhstan, no !!! I'm being bombed.
    This is all because ...
    Google hates Kazakhstan


    By adding this pixel to my website, I noticed that every time I refresh the page, he considered me as a new user, looking again at the link, I realized that $ RANDOM in amp-pixel each time created a new ID for me and GA considered me unique.
    The first thing that occurred to me was writing a loop that would output a bunch of amp-pixels.
    To get started, I decided to create 100 amp-pixel so as not to load the browser.

    Here is the p.s. loop
    itself. i use laravel so blade markup
    @for($i=0;$i<100;$i++)
        
    @endfor
    


    I opened the page, waited for the download, and decided to look at Google Analytics.
    And here’s what I saw there ...
    image,

    Google Analytics showed that I have 100 active users on the site and they all read that article.
    I decided to try increasing the cycle to 1000 and I had 1000 active users.
    image
    Google hates Kazakhstan
    From the last spoiler, you know that there is no “Kazakhstan” issue in Google News, but you can add your site to the news, and they will be displayed in the Kazakhstan section in the Russian issue.
    In Google News for publishers, you can add a special RSS "Editors' Choice" and it should appear on the right side of the main news.google.com, I safely added this rss feed and waited. After waiting a week, I decided to write Google support and there I found out that "Editors' Choice" would not be displayed, because Kazakhstani media, and the Russian issue (so what the fuck **, Kazakhstani media generally comes out in the Russian issue ???)
    Definitely
    Google hates Kazakhstan

    But the failure rate was 100%, depth 1 and amp-pixel rendering heavily loaded the processes.

    Therefore, I first decided to create a regular version of the page (Plain HTML, instead of AMP) and paste in a hundred images with this link.
    As it turned out, this worked in regular HTML as well.
    Now it was necessary to solve the problem of depth and failures, so for the place of randomly generating the user ID, I decided to create an array.
    $users = range(1,2000);
    


    Then we create 2 pages with different links and names, where there is a link to another page. We go to the first page, wait until the pictures are loaded, and go to the 2nd page and so dozens of times.
    Exemplary GIF
    image


    As a result, we have decent depth, a large number of views, a low bounce rate, etc.
    image

    I think that you can wind up other indicators, so experimenting :)

    PS I
    almost forgot, you can wind up statistics for anyone, the main thing is to know the tracking identifier.

    Also popular now: