1. Tracking user actions on sites with AMP uses the additional amp-analytics component. Add it to the code of pages on your site, inside the head element:
Example code
<head>
...
<!-- AMP Page need ↓ -->
<script async src="https://cdn.ampproject.org/v0.js"></script>
<!-- AMP Page need ↑ -->
<!-- AMP analytics need ↓ -->
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<!-- AMP analytics need ↑ -->
...
</head>
NOTE:
AMP pages require all traffic to be using HTTPS, including the webpage itself
2. Specify the Analytics Provider :
Insert amp-analytics tag to the body. Add attribute type="vponanalytics" to the amp-analytics tag,
and recommended to add "id" attribute.
And configure the parameters "licence_key" (by case provided);