GTM in AMP
-
Hello,
I am just wondering how to implement GTM in AMP for WordPress. I understand how GTM works and I understand that isn’t covered by this plugin. I am just wondering about how to implement it under the analytics tab of AMP.
I see that GTM is compatible here: https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/configure-analytics/analytics-vendors/?referrer=ampproject.org
I get these two pieces of code
Head: <!– AMP Analytics –><script async custom-element=”amp-analytics” src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script>
Body: <!– Google Tag Manager –>
<amp-analytics config=”https://www.googletagmanager.com/amp.json?id=GTM-xxxxxxx>m.url=SOURCE_URL” data-credentials=”include”></amp-analytics>However, I am unsure where to add these for the AMP version of my site? Where can I edit the AMP header?
Thank you
The page I need help with: [log in to see the link]
- The topic ‘GTM in AMP’ is closed to new replies.