Back to Integrations
Google AMP Integration
Add Pulse to your AMP pages using the amp-analytics component.
Add Pulse via amp-analytics
AMP pages have restrictions on JavaScript. The amp-analytics component is the standard way to add analytics. Add the following to your AMP page.
amp-page.html
<amp-analytics>
<script type="application/json">
{
"requests": {
"pageview": "https://pulse.ciphera.net/api/event"
},
"triggers": {
"trackPageview": {
"on": "visible",
"request": "pageview",
"extraUrlParams": {
"domain": "your-site.com",
"name": "pageview",
"url": "${canonicalUrl}"
}
}
}
}
</script>
</amp-analytics>Note: AMP pages have restrictions on JavaScript. The amp-analytics component is the standard way to add analytics.
For more details, see the amp-analytics docs.