Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
How to measure usual pageviews with amp google analytics
<amp-analytics type="googleanalytics" id="analytics1">
<script type="application/json">
"vars": {
"account": "UA-XXXXX-Y" // Replace with your property ID.
"triggers": {
"trackPageview": { // Trigger names can be any string. trackPageview is not a required name.
"on": "visible",
"request": "pageview"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment