LOG IN OR SIGN UP
Log in to your account
Sign up

How To Fire a GTM Tag on Multiple Unique Pages

How to fire tags on individual 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 site 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 some 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 adds 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

Tags: google tag manager, tracking

Previous: {{ previousBlog.sTitle }}

Posted {{ previousBlog.dtDatePosting }}

Next: {{ nextBlog.sTitle }}

Posted {{ nextBlog.dtDatePosting }}

You might also like

Running an epic website crawl

How To Run The Ultimate Website Crawl

01 December 2017

Posted by Che Kohler in nichemarket Advice


We put together a guide on how-to scrape your site with the ultimate crawling set up that will give you valuable search report data about your websit...

Read more
MailChimp now has Instagram ad functionality

Mailchimp launches Instagram Ad Campaigns

02 June 2017

Posted by Che Kohler in nichemarket Advice


MailChimp now integrates directly with Instagram to allow you to create ad sets and target your email subscribers and similar audiences with ads

Read more

Leave us a comment


{{comment.sUserName}}

{{comment.iDayLastEdit}} day ago

{{comment.iDayLastEdit}} days ago

{{comment.sComment}}

Sign up for our newsletter