Support » Plugin: Google Tag Manager for WordPress » Setting GTM for AMP pages

  • Resolved dexxdesign


    Hi Mr Duracelltomi. I love this plugin so much. It worf fine uccess for my GTM WEB Container.

    But how to set GTM AMP container for AMP pages? Can we just add GTM ID AMP Container to GTM ID WEB (means add multiple GTM ID)?


    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Thomas Geiger


    Hi @dexxdesign,

    Thanks for your kind words!

    AMP container are currently not supported.
    This is something that is on the roadmap but with lower priority. As far as I know some AMP plugins already support GTM AMP containers, maybe that integration is fine for the time this plugin will support the same as well.

    Have a great day,
    Thomas Geiger

    AMP – –

    Hello Thomas Geiger

    Thank you very much for your great plugin.

    Have been using your plugin for many years on many sites. Your plugin works great.

    Thank you very much for adding support for
    CloudFlare and GTM now work great together thanks to you.

    Hope you soon will put AMP support for GTM higher on your priority list.

    Been struggling for some months to use GTM with and
    The support team has not been able to solve this issue with GTM and

    Seems it would be easier to use your plugin with AMP,
    rather than starting from scratch with a plugin that is meant to also do a lot of other things.

    Thank you very much.



    Plugin Author Thomas Geiger


    Hi @tiur1x,

    You are welcome 🙂
    I will do my best to add AMP support soon. In the meantime if you or others can contribute to the source, I am always open to merge pull requests on GitHub:

    Have a great day,
    Thomas Geiger

    Please see the gtm4wp issue at GIThub:

    Please see this issue opened 10. July 2017 about using the plugin with

    Error message=
    HTTP response code indicates tag failed to fire: Status 403

    Please see:

    GTM works correct when using:

    with the “DuracellTomi’s Google Tag Manager for WordPress” plugin

    • This reply was modified 3 years, 7 months ago by TBT.
    Plugin Author Thomas Geiger


    Hi TBT,

    Am I correct that you have entered the same GTM container ID on your regular site and for your AMP site?

    AMP sites must include a separate container. If you create a new container on the GTM UI, you must select “AMP” as the container type instead of “Web”.

    Please check this, it might solve your issue.


    Hello Thomas

    Thank you very much for your help.

    The issue is now solved.

    Created a separate AMP container and tag.

    Now using “AMP” as the container type instead of “Web”.

    Everything works correctly.




    Hi Thomas, This is Ahmed, developer of the AMP plugin.

    Great! Thanks for the insight!

    @tiur1x so are you still using the built in GTM integration or the new plugin mentioned in the ?


    Using the built in GTM integration.
    The GTM plugin is removed.

    Dominic Heselmans


    Hi Thomas,

    For me it would also be good to be able to use AMP in your plugin.

    Kind regards,

    Plugin Author Thomas Geiger


    I will check what I can do but this will be included in v1.9 at least (v1.8 is currently in development)

    Dominic Heselmans


    Hi Thomas,

    You’re awesome

    Thread Starter dexxdesign


    Ohh so fruitful discussion. Thanks, I follow your instruction and find the solution. Great!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Setting GTM for AMP pages’ is closed to new replies.