<amp-analytics> <script type="application/json"> { "vars": { "account": "UA-xxxxxxx-x" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview", "extraUrlParams": { "cd1":"AMP", //Identify sessions starting from AMP "cd2":"${ampdocHost}" //Compare cache vs non-cache traffic } } } } </script> </amp-analytics>