Analytics
5.5K members online now
5.5K 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

Goal and regular expressions

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi Guys,

 

I have facing the problem to set up goal for dynamic 6 digit id , can any one help me to fix it

https://test/offer_details/58637/credit_card

 

58637 is dynamic number it keep on changing for each offer

 

i have set the goal to count all the offewr viewd using regular expression

http://test/offer_details/{^[0-9]{6}$}/credit_card

but it is not working , it is showing 0  ,but there are more than 100 view . 

is the regular expression correct?

 

 

2 Expert replyverified_user

Goal and regular expressions

Top Contributor
# 2
Top Contributor

Hi,

 

Please try: ^/offer_details/[0-9]{6}/credit_card$

 

Let me know if it works. You can test regexes here: http://www.analyticsmarket.com/freetools/regex-tester

 


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Goal and regular expressions

Top Contributor
# 3
Top Contributor

Hi Harish, 

 

try this:

/offer_details/[0-9]{6}/credit_card or even a more simplified /offer_details/[0-9]+/credit_card - try this initially inside behavior > all pages report. 

 

Kind regards,

Zorin

 

Web analyst @ escapestudio.net