How to detect localization settings in the order confirmation page on multi-domain stores

Hello there,

We are running a store with 4 different languages each on its own domain through one Shopify account. We have two Google Ads agencies so far, each one taking on one language and country.

I am trying to set up Google Ads conversion tracking for the second Ads account. To do so, I’m inserting the Google ads event snippet in the Settings > Checkout > Additional scripts so they execute on the order confirmation page.

I notice however, no matter which domain the customer starts on, the order confirmation page comes up on our base domain. So for example, they could start on the German store but they end up on the order confirmation page for the French domain (which is our base language and domain). The language does come up correctly in German.

On the site itself, I’ve been using the variable localization.country.iso_code to serve different code in if/else statements, which works well. But when it gets to the order confirmation page, this doesn’t work.

Do you know what variable I can use instead?

I see on Stack Overflow, one suggestion for request.locale.iso_code:
{% if request.locale.iso_code == ‘de’ %}

Thanks,

Thomas