Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Yes, because if you use the Google Tag Manager, then it already includes Google analytics and therefore, it’s not needed.

    Thread Starter gabu69

    (@gabu69)

    Hi ahmed,

    BUT be aware if you had the option of Google Analytics enabled and then enable google tag manager, both scripts will load in the HTML (analtyics code loading wond disable on google tag manager enable), even if google analytics tracking id is empty it will show at the end of footer like this

    <amp-analytics type="googleanalytics" id="analytics1"> <script type="application/json">{"vars":{"account":""},"triggers":{"trackPageview":{"on":"visible","request":"pageview"}}} </script> </amp-analytics>

    So you need to disable first google analytics and then enable tag manager. I think by default when enabling tag manager the plugin should disable by default google analytics

    Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    I have created the ticket for this: https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/3121

    We will check and resolve this in the update

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When selecting Google Tag Manager as active, google analytics option is hidden’ is closed to new replies.