Thank you page URL for Google analytics tracking

Thank you page URL for Google analytics tracking

mobeenhassan
Visitor
1 0 1

hello folks,

 

I am learning a Shopify and made 1 ecommerce website with the help of video tutorials. The website is working fine and received a good response from the online world.

 

I am here to know that if my customer buy the product and after successful purchase which static "Thanks You" page URL I can able to track in Google Analytics. When I set the GOAL in google analytics, it asks me for the destination URL and when I check with dummy order for the URL, I came to know that Shopify default page is dynamic and it change the URL.

Can somebody help me on this? my website URL is www.comfortcollections.co.uk

Replies 5 (5)

claricelin
Shopify Partner
148 19 31

The final thank you page should contain this: /checkout/thank_you

I help store owners to double their traffic and sales by getting on Google and YouTube page one. Check out my YouTube channel for more tips and tactics to drive traffic and sales ➤ https://youtube.com/claricelin

Download my Shopify Marketing Guide to learn both FREE & PAID ways to drive visitors to your store that convert into paying customers. ➤https://claricelin.com/shopify-marketing-guide/

Rio
Shopify Staff
294 20 43

Hey, @mobeenhassan!

 

Great question. As shared here, the URL will be `/checkout/thank_you`. If you're just getting set up with Google Analytics you'll find our Complete guide for Google Analytics helpful in speeding up the learning process! Check it out. 

 

Hope that hleps!

Rio | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

HutchWhite
Tourist
3 0 4

For some customers there may be a string between checkout and thank_you so contains won't work for  `/checkout/thank_you` when its this url something like this /checkouts/cn/xxxxxxxxxxxxxxxxxxxxxxxxx/thank_you

finsandpawsllc
Visitor
1 0 0

It doesn’t work. Google Analytics wants the whole link and what you are giving me is dead.

Brendan-Optily
Shopify Partner
87 10 23

@mobeenhassan as per the response from @Rio and @claricelin you use that snippet in your Google Analytics tracking. The key thing when setting up the tracking event is to select the option where the url "contains" and not the "exact" match.

 

I hope that helps. 

Optily - Supercharge your ROAS (App)
Get more sales from ads with daily ad spend optimization for Google, Instagram, Facebook, YouTube and TikTok. Install for free here.