AMP Utilizing Google Analytics/Tag Manager

So when you turn on AMP for your pages, your Google Tag Manager script gets wiped out. If you rely on this for your organization's analytics needs, this is hugely problematic. GTM implemented an AMP container recently that leverages the analytics module within AMP. Without having this capibility, or the ability to do any sort of advanced edits on the AMP rendering, I cannot use the AMP feature.

HubSpot updates
7 Replies
Occasional Contributor | Diamond Partner
Occasional Contributor | Diamond Partner

Really hepful!

New Contributor | Platinum Partner
New Contributor | Platinum Partner

Has anyone found a way to edit AMP pages within HubSpot so we can add analytics to the pages?

New Contributor

I also use a custom GA tracking code (like displayfeatures and linker plugin) so we cannot use the Integration GA option in the COS settings.

 

I have AMP enabled and there is not tracking for AMP. I tried talking with support and they didn't help. They pointed me here.

 

I think the Blog -> Google AMP section should have a "Integration with Google Analytics" option added. This would allow the GA code to track the AMP correctly. 

New Member

 Same problem occured. I have added AMP GTM codes to <head> <footer> and <body> but GA doesn't see AMP visits. Has anyone now to fix? Hubspot support?

Regular Contributor | Platinum Partner
Regular Contributor | Platinum Partner

Much needed! Specially for those customers of ours that track everything in rely GTM and view that as their single source of truth.

New Contributor

I ended up disabling the AMP all together and wrote my own AMP so I could do the tracking I needed.

New Contributor

We too have disabled AMP pages because we are unable to accurately track their performance via GA. 

I'd be interested to see how HubSpot react to the recent news about the Google page experience update and this using AMP version for scoring. , https://www.seroundtable.com/google-page-experience-scores-amp-version-29630.html . 

 

It would be great to have a section to adjust tracking based on Google best practice https://support.google.com/analytics/answer/6343176?hl=en