AMP Utilizing Google Analytics/Tag Manager

ryanmoorman

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.

11 Replies
andreacastanar
Participant

Really hepful!

AdhereCreative
Member

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

MrJustinGivens
Participant | Partner

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. 

Tsvyetkof
Participant

 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?

tobiaspasma
Contributor

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

MrJustinGivens
Participant | Partner

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

Carl_Sadecki
Member

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

 

ziadi
Contributor

CRUCIAL UPDATE: BUMP!

ziadi
Contributor

Hubspot are there any updates on making this happen? It's been 3 years, and Googles Web Vitals have become a very important ranking factor. AMP pages are becoming neccessary to compete. Have the ability to integrate tag manager or analytics using AMP would be AMAZING and a GAME CHANGER!

gabrielskydev
Member

If you insert personalized JavaScript code in an AMP page it will not be indexed in google!

WE NEED VERY FAST A SOLUTION FOR THIS.

I cant add the analytic script or the script for hubspot forms.
It is very important to solved this ASAP

kennethbrenes
Contributor

I would like the Hubspot implement a way that allows AMP pages to interact with CTAs tracking, I know that mostly all JS files are filtered, but any solution must be there.