FROM CACHE - en_header

Tracking purchase using Google Analytics

New Member
2 0 0

The Conversion:

Our goal in Google Analytics is marked as complete when a user makes it from an landing page over to Shopify and from there completes a ticket purchase. When a user has reached the 'payment confirmation/thank you' page, the goal is officially complete and a conversion is recorded.


To do this we have to established cross domain tracking between the and the To set up cross domain tracking between the two sites we have to add tracking code on each site. To support this code, Google Analytics' settings have to be optimized.


What we have in place:


Code added:

 - Site-wide tracking code on

- Tracking code on the 'payment confirmation/thank you' page on

- tracking code in shopify's "theme.liquid", under the opening "body" tag.

- tracking code in Order Processing "Additional Scripts" section


Supporting settings optimized:

- Goal created in Google Analytics
- Destination set as url of 'payment confirmation/thank you' page of the
- Both of the domains added to the 'referral exclusion' list
- Goal imported into Google Ads


What isn't working: We have tested the conversion multiple times by starting on the page, clicking 'buy tickets', following the check out process on, and making it to the 'payment confirmation/thank you' page. When we complete this test, we check Google Analytics to see if a conversion has been recorded. None have so far.


Any help would be greatly appreciated

Replies 2 (2)
Shopify Staff
Shopify Staff
1134 83 217

Hey there, 


Just wanted to notify you that I've moved this post to our Ecommerce Marketing board, it's a better fit here since it wasn't related to the usage of Shopify's APIs. Cheers!

Josh | 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

Shopify Expert
873 34 223

Do the two domains have the same tracking IDs? They must be under the same property for cross-domain tracking to work. I've seen many stores stuff this up. I have a guide to do cross-domain tracking in Shopify.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required):