Analytics
2.1K members online now
2.1K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Help with regular expression for a goal

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I need help with a Regular expression. Currently it is set as  /CreateAccount/*

 

It verifies, but includes too much, so my count is too high. I want it to include just the bottom 2. How do I change the regular expression so that it always includes a string after /CreateAccount/ but never counts "index" as one of the options? In other words, the count should be 2, just the bottom 2. Thanks!

 

 /createaccount/

/createaccount/index

/createaccount/3d029662n37682126

/createaccount/4ch92718wv892604t

 

1 Expert replyverified_user

Re: Help with regular expression for a goal

[ Edited ]
Rising Star
# 2
Rising Star

Hi Joe,

 

If all the URLs you want to track start with a number you can use this simple expression, it won't include the first 2:

 

\/createaccount\/[0-9].*

You can see it in real time here https://regex101.com/r/sU3bD5/1

 

Hope it helps,

Google Analytics Rising Star | Was my response helpful? If yes, please mark it as the 'Best Answer.' Learn how here!
Analytics Consultant at Carloseo.com - Find me on Twitter | Email me

Re: Help with regular expression for a goal

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thank you so much! Looks like it will do the trick!