Skip to content

GTM Tracking for AMP Containers

This instruction assumes you’ve already seen our Google Tag Manager (GTM) instructions for Web containers. We will continue by describing the steps for GTM tracking for AMP Containers. has partnered with Google to provide a tag to load the component on Accelerated Mobile Pages (AMP).


  1. You will need to know your Site ID(s)
  2. Optional – create a Site ID variable to send testing data to your sandbox
  3. If you’ve already added the tracking code by another means (such as the WordPress plugin), you should be prepared to disable that other means of tracking to avoid double counting page views. Not sure? You can use our testing instructions to see if page views are firing right now.


  1. Navigate to the “Tags” section of your Google Tag Manager workspace.
  2. Click “New”.
  3. From “Tag Configuration” choose the tag from the “More” section (or search for the tag).
  4. Add your Site ID to the API Key field.
  5. Check the box next to Get Client ID from AMP document or cookie.
  6. Click in the Triggering section and select the trigger you wish to use for this tag. A good rule of thumb: use the same trigger(s) you already have configured for Google Analytics or other trackers. Otherwise, just choose the standard All Pages trigger.
  7. Name and save the tag and publish your container.

The AMP component will now deploy through Google Tag Manager to your AMP pages.

Next Steps

Last updated: June 03, 2024