AMP Analytics
-
Hi,
I use Google Analytics with Google Tag Manager.
Both use a special code for AMP that is currently not complete on your AMP plugin.
According to google documentation for a complete AMP analytics you need these codes in AMP pages:at the end of the <head> tag: (This is correct!)
<!– AMP Analytics –><script async custom-element=”amp-analytics” src=”https://cdn.ampproject.org/v0/amp-analytics-0.1.js”></script>Additionally to get Tag Manager to work you need this at the beginning of the <body> tag:
<amp-analytics config=”https://www.googletagmanager.com/amp.json?id=GTM-MFTBG83>m.url=SOURCE_URL” data-credentials=”include”></amp-analytics>
Is it possible to implement the last code the in the settings like with the Analytics ID but now additionally with the Google Tag manager ID like this: GTM-MFTBG83
- The topic ‘AMP Analytics’ is closed to new replies.