Good day.
I think many 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.
')
PrehistoryOnce I studied statistics in the Google Search Console, I noticed that another item had appeared in the “View in Search” section, this item led to a report on the pages indexed by AMP.
Going to this page, I saw the inscription

Of course, I immediately wanted to know what these accelerated mobile pages are. Following the link, I saw the AMP page creation guide. After reading the guideline, I started creating amp pages on my site.
StoryAfter reading the documentation for the creation of AMP, I immediately began to implement.
Google hates KazakhstanAfter I prepared all my pages, I waited for the official launch of AMP, it was supposed to be February 24, and it started on February 24, but Kazakhstan was not included in the list of those countries that will display the AMP versions of the pages in the search. And nowhere was this written. And nowhere is it written when AMP is available in Kazakhstan.
Probably because ...
Google hates Kazakhstan
An hour later, I was already 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 bit, I came across
this question on Stackoverflow.
They suggested inserting a pixel with the following url that passed the necessary values ​​to Google Analytics
<amp-pixel src="https://ssl.google-analytics.com/collect?v=1&tid=UA-12345678-1&t=pageview&cid=$RANDOM&dt=$TITLE&dl=$CANONICAL_URL&z=$RANDOM"></amp-pixel>
This picture conveyed 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 yet
Google hates KazakhstanSince I work in the editorial online media, for us all methods of attracting traffic are important. One of the main channels for other media is Google News. But in Google News there is no way to select news from Kazakhstan. Hell, there is even news from Ethiopia and Kenya !!! And there is no Kazakhstan !!! I'm bombed.
This is all because ...
Google hates Kazakhstan
Having added this pixel to my website, I noticed that every time the page was updated, he considered me as a new user, after looking again at the link, I realized that $ RANDOM in the 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-pixel.
To begin with, I decided to create a 100 amp-pixel in order not to load the browser.
Here is the cycle itself
ps i use laravel, so the blade markup @for($i=0;$i<100;$i++) <amp-pixel src="https://www.google-analytics.com/collect?v=1&t=pageview&z={{rand(100000,500000)}}&dt=$TITLE&dl=$CANONICAL_URL&tid=UA-59188XXX-1&cid=$RANDOM" > </amp-pixel> @endfor
I opened the page, waited for the upload and decided to look at Google Analytics.
And that's what I saw there ...

,
Google Analytics showed that I have 100 active users on the site and they all read that article.
I decided to try to increase the cycle to 1000 and I have 1000 active users.

Google hates KazakhstanFrom the last spoiler, you know that there is no release of “Kazakhstan” in Google News, but you can add your site to the news, and they will be displayed in the
Kazakhstan section in the Russian edition.
In Google News for publishers, you can add a special “Editor's Choice” RSS and it should be displayed 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 to Google support and there I found out that “Editor’s Choice” will not be displayed, since The media is Kazakh, and the issue is Russian (what kind of x **, does the Kazakhstani media in general go to the Russian issue ???)
DefinitelyGoogle hates Kazakhstan
But the bounce rate was 100%, depth 1 and the rendering of the amp-pixel heavily loaded processes.
Therefore, I first decided to create a regular version of the page (Regular HTML, instead of AMP) and insert there a hundred images with this link.
As it turned out, it worked in plain HTML.
Now it was necessary to solve the problem of depth and failures, so for the place of randomly generating a user ID, I decided to create an array.
$users = range(1,2000);
Next, create 2 pages with different links and titles, where there is a link to another page. We go to the first page and wait until the pictures are loaded, and go to the 2nd page, and so a dozen times.
As a result, we have a decent depth, a large number of views, a low failure rate, etc.
I think that you can wind up other indicators, so experimenting :)PS
I almost forgot, you can screw statistics to anyone, the main thing is to know the tracking ID.