Skip to main content

The _shopify_country cookie will no longer be set

What's changing?

Starting on August 15th, 2025, Shopify will no longer set the _shopify_country cookie on merchant storefronts or checkout.

Required updates

Developers looking to establish the customer's location can use the Customer Privacy API's getRegion method, which will be more reliable than the cookie now being removed.

Example JavaScript code:

window.Shopify.loadFeatures([
  {
    name: 'consent-tracking-api',
    version: '0.1',
  },
], function (error) {
  if (error) {
    throw error;
  }
  
  // "CAON"
  let region = window.Shopify.customerPrivacy.getRegion(); 
  // "CA"
  let country = region.slice(0,2); 
});
Was this section helpful?