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.

Parse.ly has partnered with Google to provide a tag to load the Parse.ly component on Accelerated Mobile Pages (AMP).

Prerequisites

  1. You will need to know your Parse.ly 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.

Instructions

  1. Navigate to the “Tags” section of your Google Tag Manager workspace.
  2. Click “New”.
  3. From “Tag Configuration” choose the Parse.ly tag from the “More” section (or search for the Parse.ly tag).
  4. Add your Parse.ly Site ID to the Parse.ly 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 Parse.ly AMP component will now deploy through Google Tag Manager to your AMP pages.

Next Steps

Last updated: August 15, 2024