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
- You will need to know your Parse.ly Site ID(s)
- Optional – create a Site ID variable to send testing data to your sandbox
- 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
- Navigate to the “Tags” section of your Google Tag Manager workspace.
- Click “New”.
- From “Tag Configuration” choose the
Parse.ly
tag from the “More” section (or search for the Parse.ly tag). - Add your Parse.ly Site ID to the
Parse.ly API Key
field. - Check the box next to Get Client ID from AMP document or cookie.
- 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.
- 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
- Does everything work? Use our testing instructions to verify that one, and only one, page view goes to Parse.ly with each page load.
- Set up your metadata (not available via GTM), if you haven’t done so already.
- Check to see if there’s more to set up in GTM that applies to you:
- Return to the GTM overview or Integration Overview page to ensure you’ve completed everything
Last updated: August 15, 2024