Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:b36ff3a8eac5feb06dde
Created Jan 31, 2016

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"
}
}
}
</script>
</amp-analytics>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment