1 Shopify store with 2 domains. How to add separate Google analytics tracking codes for each?

Topic summary

Issue: A single Shopify store uses two domains for different international markets, and the goal is to track traffic and conversions separately in Google Analytics for each domain.

Current setup: One Google Analytics tracking code has been added; the user doesn’t know where to add a second code for the other domain.

Latest update: A respondent asks whether both domains are added in Shopify and if a separate Shopify Market (Shopify’s regional/domains configuration feature) is set up for each domain, implying this setup may affect tracking. They also ask if a solution was found and express surprise at the lack of obvious support.

Status: No solution or concrete steps provided. Key open question: how to implement separate Google Analytics tracking (two codes or equivalent setup) per domain within one Shopify store.

Summarized with AI on January 16. AI used: gpt-5.

Dear community,

I have 1 shopify store with 2 domains. Each domain represents target international market. In Google Analytics I would like to track data and conversions separately for each market/domain. I have successfully added 1 tracking code. However, I do not know where I should add the second code for the second domain to track the data separately.

Thank you very much for your help.

1 Like

Did you ever figure this out?

Are your domains added in Shopify and you’ve set up a Shopify market for each domain…?

I find it astonishing that Shopify would not have thought of this… :confused: