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

I'm trying to setup a Goal URL with REGEX matching but it's not working.

The Url I'm trying to match is:


with "12345" being the userid that changes.


Should work, but doesn't. When I do an advanced search for pages with RegEx match (in the new GA interface) it shows no results. If I search for "contains" /edit?registration=1 it shows all the Urls.

What am I missing?

share|improve this question
I had to escape the ? .... – MotoTribe May 5 '12 at 18:33
up vote 1 down vote accepted

Try escaping the question mark, like so:


As with regex's the question mark makes the preceding character optional, so you'd be matching:

  • user/12345/ediregistration=1
  • user/12345/editregistration=1

Test it on the advanced search (report filter) first, in case there's something else I've missed.

share|improve this answer

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.