AdWords
2.1K members online now
2.1K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

Help: RegEx Question for Goal Tracking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hello, Everyone.


I'm trying to get this URL string set up as a goal in Analytics, but can't get it to work. What's the appropriate reg ex to use to make sure trackign works? 

 

/index.php/quotes/ANYNUMBER/quote-requestANYNUMBER/update

 

 

2 Expert replyverified_user

Re: Help: RegEx Question for Goal Tracking

Google Employee
# 2
Google Employee

Hi Knox,

 

Thanks for posting in our forum. Here is some information about Regular Expressions. Here is also a post about RegEx in our Webmaster Central Forum. 

 

Would any of our other community members like to chime in on their experience?

Re: Help: RegEx Question for Goal Tracking

Top Contributor
# 3
Top Contributor
Hi, KnoxN,

Hope I'm not mistaken, but

^/index.php/quotes/[0-9]*/quote-request[0-9]*/update$ should work.

^ defines the start of the expression, $ is it's end and [0-9]* means any digit any number of times. Please give it a try and let us know if it worked.

If you're not sure it starts and ends like that, just skip the ^ and $, though this will place higher stress on the Google systems, as the regular expression is less restrictive Smiley Happy.
Calin Sandici, AdWords Top Contributor | Find me on: Google+ | Twitter | LinkedIn | myBlog
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here.

Re: Help: RegEx Question for Goal Tracking

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
I'll give it a shot. Thanks for the idea/help