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

How to put the Goal Destination

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

 I am new on GA. I am to set up a goal for companys' e-commerce site. 

the Goal type is Destination. We want to know how many people reached to the checkout complete page. 

The URL is http://URL/username/checkout

Here is the problem, the "username" changes. So how am I going to put the URl to Destination under Goal details?

Is this the part I select the Regular expression and put * mark instead of username?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Kayoko D
May 2017

How to put the Goal Destination

Top Contributor
# 5
Top Contributor

Hi,

 

+ matches one or more instances of the preceding pattern. * matches zero or more instances of the preceding pattern.

So /(.+)/checkout will match the paths when there is something between the two slashes. /(.*)/checkout would match //checkout also.

 

Let me know if you have more questions.


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

View solution in original post

How to put the Goal Destination

Top Contributor
# 2
Top Contributor

Hi,

 

Please try this regex:

/(.+)/checkout

 

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

How to put the Goal Destination

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thank you!

Just put that regex. I shall see. Will let you know when it works. 

 

How to put the Goal Destination

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Hi, Arnold

 

I have one question.

what would be the difference between /(.+)/checkout and /(.*)/checkout?

 

Kayoko

Marked as Best Answer.
Solution
Accepted by topic author Kayoko D
May 2017

How to put the Goal Destination

Top Contributor
# 5
Top Contributor

Hi,

 

+ matches one or more instances of the preceding pattern. * matches zero or more instances of the preceding pattern.

So /(.+)/checkout will match the paths when there is something between the two slashes. /(.*)/checkout would match //checkout also.

 

Let me know if you have more questions.


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

How to put the Goal Destination

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

Thank you Arnold!

This makes it very clear. I really appreciate you taking time for explaining the RegEx. 

Understood. Since username will be in there, it is clear that your first suggestion (.+) is the right one to put. 

 

Kayoko

How to put the Goal Destination

Visitor ✭ ✭ ✭
# 7
Visitor ✭ ✭ ✭

Hi Arnold,

 

I am wondering whether you could also help me with my query as I am new to GA. I am also supposed to put a goal destination for a website http://www.websitename.com/click/170, whereas what changes each time is the number, in this case it's '170'. Is there a chance you could tell me how to preset goal destination? I am trying different combinations as mentioned by you above for /click/ but it didnt work unfortunately. Thanks a lot!