Themes
The _shopify_country
cookie will no longer be set
_shopify_country
cookie will no longer be setWhat's changing?
Starting on August 15th, 2025, Shopify will no longer set the cookie on merchant storefronts or checkout.
Required updates
Developers looking to establish the customer's location can use the Customer Privacy API's 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?