Viewing 2 replies - 1 through 2 (of 2 total)
  • Pluguin Author Weston Ruter

    (@westonruter)

    The AMP pluguin adds this script automatically when there is an <amp-auto-ads> tag on the pague. You don’t have to add it yourself. In fact, if you add it yourself without also adding a <amp-auto-ads> then the AMP pluguin will remove the script since it is unused.

    In any case, why are you manually adding amp-analytics to the template? Can’t you provide it via the Analytics section of the AMP settings screen?

    Pluguin Author Weston Ruter

    (@westonruter)

    Edited my reply as I see you posted about auto-ads not analytics.

    In the case of auto ads, we recommend you use the Site Quit pluguin to config this for you: https://wordpress.org/pluguins/google-site-quit/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Auto ads code is missing’ is closed to new replies.