
In short
To track AMP pages with Google Tag Manager, create an AMP container, add its snippet to your AMP pages, configure triggers and tags, then test in Preview mode and publish. One limit matters: GTM for AMP doesn't support Google Analytics, so GA4 on AMP pages needs the manual Google tag amp-analytics snippet.
Contents6 sections
Accelerated Mobile Pages (AMP) load quickly on mobile, but AMP pages restrict JavaScript, so normal tracking scripts do not run on them. Google Tag Manager (GTM) has a dedicated AMP container type for this. This guide covers how to set one up, the benefits, best practices and one important limit for Google Analytics.
What is AMP, and is it still used?
AMP is an open-source HTML framework, originally launched by Google, for fast-loading mobile pages. It simplifies HTML, restricts JavaScript and serves cached copies of pages, so content appears almost instantly.
AMP is less central than it was: Google stopped requiring AMP for its Top Stories results in 2021, and many publishers have since moved away from it. Sites that still serve AMP pages, however, need to measure them like any other page.
What does Google Tag Manager do for AMP pages?
An AMP container lets marketers deploy and manage tags on AMP pages without changing the page code each time, using the familiar GTM interface to track interactions and conversions.
Can you track AMP pages in GA4 with Google Tag Manager?
No. Google's AMP tag setup guide says Google Tag Manager for AMP doesn't support Google Analytics. To measure AMP pages in Google Analytics, add the Google tag AMP snippet (amp-analytics with type="gtag") to the pages manually. Use the AMP container for your other tags.
How do you set up AMP tracking with GTM?
- Create an AMP container. In your GTM account, create a new container and choose the "AMP" container type. It will hold all the tags for your AMP pages.

- Add the container snippet to your AMP pages. GTM gives you an AMP-specific snippet. Add it to your AMP pages as instructed; tracking cannot start without it.

- Configure triggers and tags. In the AMP container, set up triggers and tags for the interactions you want to track, such as page views, link clicks or form submissions.

- Test and publish. Use GTM's Preview mode to check that your tags fire correctly, then publish the container.

What are the benefits of using GTM for AMP?
- Simpler tag management: tags are managed without editing the page code, which saves time and reduces errors.
- Richer interaction data: you can collect engagement and conversion data from AMP pages.
- Page performance: AMP pages stay fast because tags run through AMP's own analytics framework instead of extra scripts.
- Integration with other platforms: the container can send data to supported advertising and analytics vendors. For Google Analytics, use the manual snippet described above.
What are the best practices for AMP tracking?
- Use a dedicated AMP container: keep AMP tags in their own container so the setup stays organised and suited to the AMP environment.
- Maintain your tags: review and test tags and triggers regularly as your site changes. Many common problems are the same as on normal pages; see these Google Tag Manager setup mistakes.
- Respect user privacy: comply with data protection rules such as GDPR and CCPA by adding consent mechanisms and anonymising data where required.
- Use built-in AMP variables: GTM's AMP containers include built-in variables designed for AMP, which capture useful data points without extra configuration.
Conclusion
If you still serve AMP pages, measure them. Use a GTM AMP container for your tags and the manual Google tag snippet for Google Analytics, then test and keep both maintained so AMP and non-AMP data can be compared.

