How to view AMP Page Performance Report Through Google Analytics
How to view AMP Page Performance Report Through Google Analytics. Track AMP Page Blogger that visited by viewers. amp-analytics Google Blogger.com
How to view AMP Page Performance Report Through Google Analytics
Google Analytics is one of the tools that must be used by Webmasters. This tool created by Google is able to provide in-depth reports about each visitor to a website.
In order for Google Analytics to provide visitor reports on your website, you can simply install a JavaScript code that is prepared when you register your Website in Google Analytics.
Install Google Analytics on AMP Page
If you use an AMP HTML-based web page, of course the way to install it is different from the usual method. I will explain below:
First, install the amp-analytics component in the heading tag. Paste the code below before
</head>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
Then, copy the following code and paste it before the closing tag
</body>
<amp-analytics type="googleanalytics"> <script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" } , "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } } } </script> </amp-analytics>
Don't forget to change the yellow text with your Google Analytics Tracking ID.
View AMP Page Performance Reports in Google Analytics
There are some ways to view AMP Page Performance in Google Analytics. I will explain 2 of the easiest ways to see the performance results of your AMP page.
1. Acquisition - All Traffics - Referrals
The first way is to look at traffic referral from your website. If a visitor to your Website, visits an AMP page, then Google Analytics will generate traffic sources like www-yourwebsite-com.cdn.ampproject.org.
You can see the picture above, from the report there were 54 AMP pages visited.
To find out which pages you visit, you can find out by clicking on that traffic source.
UPDATE!!!
The above method turns out that only applies to pages that have been cached.
2. Behavior - Site Content - All Pages
The next way is by analyzing the AMP page that is displayed. Usually, URL parameter or subdomain for AMP specific pages will be different.
For example, the Website canonical page is www.example.com, usually for AMP it will be www.example.com/amp or amp.example.com.
The performance of visited AMP page can be seen using the Behavior tab in Google Analytics.
Like the picture above, my blog uses the amp = 1 parameter for the AMP page.