Hey @willchan04
You can just setup the options. Add You should add “googleanalytics” in the Analytics type.
It should work perfectly fine.
Regards,
Ahmed
Hey Ahmed,
Thanks for getting back. I tried it and it did not work.
I don’t know if this is costing the issue but the Google tag manager installation code is
<amp-analytics config=”https://www.googletagmanager.com/amp.json?id=GTM-XXXXXXX>m.url=SOURCE_URL” data-credentials=”include”></amp-analytics>
but the one that I see in the source code that generates by AMP for WP is
<amp-analytics id=”amp-gtm-googleanalytics” type=”googleanalytics” data-credentials=”include” config=”https://www.googletagmanager.com/amp.json?id=GTM-XXXXXXX>m.url=SOURCE_URL”><script type=”application/json”>{“vars”:{“account”:”UA-XXXXXXXX”},”triggers”:{“trackPageview”:{“on”:”visible”,”request”:”pageview”}}}</script></amp-analytics>
Is the & causing the issue?