Google tag manager

How To Fire a GTM Tag on Multiple Unique Pages

Google Tag manager has become a revolutionary tool for digital marketers and site owners. Giving us a code-free solution to create, update and maintain marketing tech and tracking on websites has made our lives a whole lot easier and personally, I can’t see myself running a website without it.

Google Tag manager has a range of built-in features for you to take advantage of but every so often you might want to do something out of the ordinary which the usual template doesn’t cater for.

One question I get pretty often is how to fire your tags to a number of specific pages without creating multiple triggers. Since I’ve been getting this question a lot and thought it best to put together an easy to use tag manager tutorial.

Why would I use this?

It all depends on you and how your site is set up. Let’s say for argument’s sake you have multiple thank you pages. One for existing customers and one for new customers. When a user completes the purchase process they are sent to the URL applicable to them.

Now let’s say you want to track both pages as a single conversion group for your marketing tags, you can do so via this method.

fire tags to specific pages

How to create a trigger that fires a tag to specific pages:

  • Open Google Tag Manager and navigate to your account
  • Head off to triggers which can be found on the navigation bar on your right
  • Select “New” Trigger
  • Give your trigger a name – IE. Multiple Page Trigger
  • Under trigger configuration select “page view” as the trigger type
  • Select trigger fires on “Some page views”
  • Under the trigger event select page URL
  • Under the condition select “matches RegEX”
  • Under the final condition, field add the end of the URL you would like to match in brackets and separate them with a pipe.
  • Example (thank-you-exisiting-customer|thank-you-new-customer)
  • Save your trigger

Mutliple page trigger

Now that you have the trigger available simply apply the trigger rule you want to the specific tags and you’re done.

To exclude specific pages from firing your tag

Alternatively, you may want to exclude certain pages on your site from firing specific tags, this would be a nightmare to do one at a time and is ideal for pages that sit in different directories on your site.

How to create a trigger that excludes specific pages from firing your tags

  • Open Google Tag Manager and navigate to your account
  • Head off to triggers which can be found on the navigation bar on your right
  • Select “New” Trigger
  • Give your trigger a name – IE. Multiple Exclude Page Trigger
  • Under trigger configuration select “page view” as the trigger type
  • Select trigger fires on “Some page views”
  • Under the trigger event select page URL
  • Under the condition select “does not match RegEX”
  • Under the final condition, field add the end of the URL you would like to match in brackets and separate them with a pipe.
  • Example (thank-you-exisiting-customer|thank-you-new-customer)
  • Save your trigger

Multiple page exclude trigger

Now that you have the trigger available simply apply the trigger rule you want to the specific tags and you’re done.

Get specific

I’ve found this little trick pretty useful when creating tags, especially for conversion tracking tags like your Facebook Event Pixel, Twitter Conversion Pixel, Adwords Conversion tag or Floodlight sales tags.

Depending on how your site is set up this trick gives you more control over your tracking and can help you produce more accurate data for 3rd party tools to use when analysing your site visitors user behaviour.

CONTACT US

If you want to know more about Google Tag Manager don’t be shy we’re happy to assist. Simply contact us here

About the author

Che Kohler

View all posts

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.