Localization is returning different location in different browsers

Hello,

In our custom built theme, we use the localization.country.iso_code to determine whether a customer should be directed to a certain page or not. The issue we’re having is that in Customise, on Chrome it’s returning “IE” but on Safari it’s returning “UK” (it should be UK as we’re based in London, and not on any kind of VPN or anything). Why is it not consistent and how can we resolve this?

It’s impossible to find any decent explanation on how Shopify is determining the localization value.

Thanks.

Hi @maxgrind ,

Have you tried checking with incognito tab or checking if the ‘Country/region’ of the 2 browsers is the same?

Because most likely it’s due to cache when you changed ‘Country/region’ in chrome.

Hope it helps!

Hello, thanks for the reply.

Trying incognito it does work, so that does mean it’s something to do with my google account? I’ve looked everywhere in settings and everything is setup as United Kingdom, English, etc.

I’m at a loss, any other thoughts on what it could be? Thank you.

Hi @maxgrind ,

It’s not about google account, it’s about site cookies. You just need to clear google chrome site cookies, it will work fine. Refer https://support.google.com/chrome/answer/95647?hl=en&co=GENIE.Platform%3DDesktop

If it helped you solve your issue, please mark it as a solution. Thank you and good luck.

I had already cleared all cookies so it’s not related to that. Just creating a new google profile has seemed to have solved it so who knows what the issue was.