Cart 0

test page

<!doctype html><html amp="" lang="en"><head><meta charset="utf-8" /><title>Hello, AMP Analytics</title><link rel="canonical" href="" data-mce-href="http://example.ampproject.org/article-metadata.html" /> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1" /><script async="" custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script><style>body {opacity: 0}</style> <noscript><style>body {opacity: 1}</style></noscript> <script async="" src="https://cdn.ampproject.org/v0.js"></script></head><body><amp-analytics type="googleanalytics"><script type="application/json"> { "vars": { "account": "UA-XXXXX-Y" }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" }, "trackEvent": { "selector": "#event-test", "on": "click", "request": "event", "vars": { "eventCategory": "ui-components", "eventAction": "click" } } } } </script></amp-analytics> <h1 id="header">AMP Page</h1> <span id="event-test" class="box"> Click here to generate an event </span></body></html>