Analytics
3.5K members online now
3.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

Destination Goals using Regular Expression

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I am planning to have 2 destination goals to set in my Google Analytics.

 

First destination goal's URL is /confirm-email/.

 

I created this so that I can check if how many signed-up and my opt-in box and compare it with the number of people who confirmed their email addresses, which is my second destination goal.

 

My second destination goal is /confirm-email/.../.

"..." means that I sometimes change that part. It can be /confirm-email/gaming-tips/ or /confirm-email/pro-tips/, etc.

 

My first question is what is the RegEx that I will use in the desitination URL of my second goal? Like /confirm-email/[a-Z]/ (I don't know about RegEx).

 

My second question is that "Is it possible that I can just use Begins with /confirm-email/ in my second goal? Would it include those who visited the /confirm-email/ page only?

 

Thanks

1 Expert replyverified_user
Marked as Best Answer.
Solution
Accepted by topic author Rjmr H
February 2016

Re: Destination Goals using Regular Expression

Top Contributor
# 2
Top Contributor
Hi,

For your first goal if you set your destination to "Equals to" it will be triggered only for /confirm-email/
For your second goal set to regex and put ^/confirm-email/.+ into the field.

Setting your second goal to "Begins with" would include those who visited the /confirm-email/ page only.

Hope this helps.

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

Re: Destination Goals using Regular Expression

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Arnold,

Begins with count users who visited.
/confirm-email/
/confirm-email/gaming-tips/
/confirm-email/pro-tips/

Am I right?

Also, I only have little knowledge about RegEx. I know what they look like but I don't know how to create one.

Re: Destination Goals using Regular Expression

Top Contributor
# 4
Top Contributor
Hi,

Yes, you're right about "begins with".

For the second goal please try to use the regex I mentioned above:
^/confirm-email/.+

Let me know if it works.

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

Re: Destination Goals using Regular Expression

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Hi Arnold,

Woah! Woah! It worked. Thank you so much for the help.

Have a good day!