Forums Forums White Hat SEO GTM setup for hybrid AMP sites.

  • GTM setup for hybrid AMP sites.

    Posted by seohelper on June 7, 2021 at 4:08 pm

    I have a hybrid website that will load as AMP if necessary. I’m wondering if I need to have two separate GTM containers, one for regular website and one for AMP. Not sure if this is the right subreddit to ask.

    waldito replied 2 years, 10 months ago 1 Member · 1 Reply
  • 1 Reply
  • waldito

    Guest
    June 7, 2021 at 5:33 pm

    You apparently do. Mostly, cause AMP is somewhat restrictive in regards to loading certain HTML assets/scripts/css, just to provide that ‘feel of speed’.

    Turns out some of the out-of-the-box scripts from Google Tag Manager won’t work in AMP. In fact, the very same code of the TagManager scriptlet won’t work smoothly either or create problems on certain actions.

    Instead, Google Tag Manager allows you to create an AMP ready TagManager code, and in that implementation, you will only have available what’s possible in AMP, tags events and all.

    ^(Also, AMP is evil and should be banned from the face of the planet.)