Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Google Tag Manager I'd like to fire an event when a particular page is seen. This is for a completed signup page - a conversion.

In Google Tag Manager I have my base UA tag fire on all pages.

I then created a new UA tag "Subscriptions" to track events: track type events. I then filled in my category, action and label values for the event.

However, it's the rules that seem to be tricky.

When I went through the signup process in order to see the conversion page, here is all the info from Google Analytics debug in the JavaScript console:

Account ID               : UA-xxxxxx-2
Page Title               : Example Company | Your Account has been created | Premium
Host Name                : secure.example.com

Page                     : /secure/common/callback?`


I'd like to fire the "Subscriptions" event track tag. I tried the following rule but had no success:

{{url}} contains: /secure/common/callback?.
{{url path}} contains: /secure/common/callback?.

My questions therefore are:

  1. How would I fire the submissions event when this page is visited?

  2. Why is the event not firing now - isn't the logic sound? If the URL contains /secure/common/callback? then it should fire, right?

enter image description here

share|improve this question
up vote 2 down vote accepted

I have not used Tag Manager but I suspect the issue is caused by the ? at the end of you URL. My suggested solution would be to escape this so your URL will look like this:


You may also want to investigate if you can use regex with your rules to make the above more accurate.

share|improve this answer
Thanks that seems to have done the trick – Doug Fir Jan 29 '14 at 17:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.