Google Ads Tag implementation for multidomain Shopify Markets solution

Dear Shopify Community,

  1. We are using the new Shopify Markets solution to try growing ourside of our own country on the international market.
  2. We have one main domain, .SE and we have purchased unique domains, such as .FI, .DE etc.. and we do NOT want to use subdomains.
  3. Each domain is connected to a new country with its own GMC (Google Merchant Center) and GADS (Google Ads) accounts (I have one Google Ads Tag code tag for each domain, such as AW-XXXXXXXX1, AW-XXXXXXXX2, AW-XXXXXXXX3 ).
  4. We are on a Shopify plan, and NOT Shopify Plus.

BUT, when it comes to Google Ads Tags then I see the same tag for both .SE, .FI and .DE (always showing the Google Ads tag that belongs to .SE (AW-XXXXXXXX1)).

We need your best advice on how to implement the last part (Google Ads Tags, for conversion and remarketing) so our code can distinguish the unique URL and present the user coming from a different and unique domain with the right Google Ads Tag connected to the right country/region.

I have got some advice from other people but I do not have a perfect solution for this yet:
Option 1: Use GTM tags (not sure how to integrate Google Ads Tags with GTM).
Option 2: Code block on additional scripts (here I believe they mean checkout script area or thank you page).

My own idea was to just read and compare (IF statement) from which URL the customer is coming inside the checkout additional script area, or maybe the thank you area if its accessible on a Shopify Plan.
But I am not sure how the code should look like that reads the URL and compares it:

This is a nonworking code idea I had:
Please see the attached code in the attached .txt file.

Another idea is maybe the read the conversion in the thank you page someone if this area allows for reading the URL somehow?

Please let me know how to solve this and let me know if you have any questions so I could clarify the situation!
Big thanks to Shopify and to the community!

Cheers,

Danman

1 Like

Hello @VortexVR

Can you try the below code condition as per your requirement? This might work for you.

//Get Secure Url 
{% assign my_shop_url = shop.secure_url %}
    
{% if my_shop_url == 'https://xyz.myshopify.com' %}
  ## Hey this is Primary domain!
{% elsif my_shop_url == 'https://xyz.myshopify.com/en-gb' %}
  ## Hey this is uk domain!
{% endif %}

Hi, currently I have the same problem. I almost solve it. I used GTM. It is a pain to set up correctly. After setting up everything correctly still doesn’t work because PAYPAL REDIRECTS to MAIN DOMAIN, but not where the customer had purchased. So in thank you page customer, shows the wrong currency, language and also can’t track it correctly with GA. As much as I know shopify is working on this HUGE issue.

I am facing the same problem, if this problem can not be solved quickly or come up with a good solution, then I will have to take out each individual domain name to build a store, which undoubtedly adds a lot of cost (time and money).

Is there a new solution now?