# AMP Utilizing Google Analytics/Tag Manager

**URL:** <https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955>\
**Category:** HubSpot Ideas\
**Tags:** content\
**Created:** [May 8, 2017, 9:40pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955 "2017-05-08T21:40:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [May 8, 2017, 9:40pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/1 "2017-05-08T21:40:40Z")

</div>

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](https://www.simoahava.com/analytics/accelerated-mobile-pages-via-google-tag-manager/). Without having this capibility, or the ability to do any sort of advanced edits on the AMP rendering, I cannot use the AMP feature.

---

<div class="post-metadata">

**Author:** ![andreacastanar](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/andreacastanar/32/69256_2.png) [@andreacastanar](https://community.hubspot.com/u/andreacastanar)\
**Post date:** [August 10, 2017, 1:25pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/2 "2017-08-10T13:25:27Z")

</div>

Really hepful!

---

<div class="post-metadata">

**Author:** ![AdhereCreative](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/adherecreative/32/9373_2.png) [@AdhereCreative](https://community.hubspot.com/u/AdhereCreative)\
**Post date:** [August 14, 2017, 10:15pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/3 "2017-08-14T22:15:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [September 5, 2017, 5:01pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/4 "2017-09-05T17:01:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tsvyetkof](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tsvyetkof/32/88643_2.png) [@Tsvyetkof](https://community.hubspot.com/u/Tsvyetkof)\
**Post date:** [November 14, 2017, 2:53pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/5 "2017-11-14T14:53:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tobiaspasma](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tobiaspasma/32/56905_2.png) [@tobiaspasma](https://community.hubspot.com/u/tobiaspasma)\
**Post date:** [February 9, 2018, 8:06am UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/6 "2018-02-09T08:06:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [February 9, 2018, 4:35pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/7 "2018-02-09T16:35:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Carl\_Sadecki](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/carl_sadecki/32/80910_2.png) [@Carl\_Sadecki](https://community.hubspot.com/u/Carl_Sadecki)\
**Post date:** [June 19, 2020, 11:20am UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/8 "2020-06-19T11:20:35Z")

</div>

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](https://eu-west-1.protection.sophos.com?d=seroundtable.com&u=aHR0cHM6Ly93d3cuc2Vyb3VuZHRhYmxlLmNvbS9nb29nbGUtcGFnZS1leHBlcmllbmNlLXNjb3Jlcy1hbXAtdmVyc2lvbi0yOTYzMC5odG1s&e=Y2FybEBicmVhdGhlaHIuY29t&h=c90a99ae2921438a93828fb8ecbc77a1&t=ODVJNXlmM016R1BDd2k5ekNrOTAzVkpraEpSL29RMlp1Q20zY1ErbktKVT0=) .

It would be great to have a section to adjust tracking based on Google best practice [[UA] Measurement of Accelerated Mobile Pages (AMP) [Legacy] - Analytics Help](https://support.google.com/analytics/answer/6343176?hl=en)

---

<div class="post-metadata">

**Author:** ![ziadi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ziadi/32/84083_2.png) [@ziadi](https://community.hubspot.com/u/ziadi)\
**Post date:** [July 10, 2020, 3:09pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/9 "2020-07-10T15:09:57Z")

</div>

CRUCIAL UPDATE: BUMP!

---

<div class="post-metadata">

**Author:** ![ziadi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ziadi/32/84083_2.png) [@ziadi](https://community.hubspot.com/u/ziadi)\
**Post date:** [July 10, 2020, 3:11pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/10 "2020-07-10T15:11:36Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![gabrielskydev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabrielskydev/32/43030_2.png) [@gabrielskydev](https://community.hubspot.com/u/gabrielskydev)\
**Post date:** [November 23, 2020, 11:30pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/11 "2020-11-23T23:30:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kennethbrenes](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kennethbrenes/32/31184_2.png) [@kennethbrenes](https://community.hubspot.com/u/kennethbrenes)\
**Post date:** [February 9, 2021, 10:07pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/12 "2021-02-09T22:07:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![MCortes2](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@MCortes2](https://community.hubspot.com/u/MCortes2)\
**Post date:** [June 17, 2024, 9:02pm UTC](https://community.hubspot.com/t/amp-utilizing-google-analytics-tag-manager/1955/13 "2024-06-17T21:02:55Z")

</div>

Es muy necesario.
