Created
January 31, 2016 18:13
-
-
Save anonymous/b36ff3a8eac5feb06dde to your computer and use it in GitHub Desktop.
How to measure usual pageviews with amp google analytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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