--- title: shopify_y and _shopify_s cookies will no longer be set - Shopify developer changelog description: Shopify’s developer changelog documents all changes to Shopify’s platform. Find the latest news and learn about new platform opportunities. source_url: html: https://shopify.dev/changelog/shopifyy-and-shopifys-cookies-will-no-longer-be-set md: https://shopify.dev/changelog/shopifyy-and-shopifys-cookies-will-no-longer-be-set.md --- [Back to Developer changelog](https://shopify.dev/changelog) August 4, 2025 Tags: * Action Required * API # \_shopify\_y and \_shopify\_s cookies will no longer be set ### What's changing? Starting on January 1st, 2026 Shopify will no longer set the following cookies on merchant storefronts: * `_shopify_s` * `_shopify_y` ### Required updates While accessing internal cookie values is never recommended as they frequently change, any code that currently accesses the cookie values will need to be adapted to use documented APIs. #### `_shopify_y` If you're accessing this value via `document.cookie` you'll have to use [Web Pixels](https://shopify.dev/docs/apps/build/marketing-analytics/pixels) and particularly the `clientID` property of any Standard or DOM event (See [API reference](https://shopify.dev/docs/api/web-pixels-api)). This example shows a Custom Pixel, but this would work with a Web Pixel App Extension as well. * Go to Admin > Settings > Customer Events > Custom Pixels * The following JavaScript within a web pixel would log the ID formerly known as `_shopify_y` on every page view, assuming proper user consent is given: ```javascript analytics.subscribe('page_viewed', (event) => { console.log("The client's ID is ", event.clientId); }); ``` #### `_shopify_s` Shopify will not offer a replacement value. However, as part of the browser APIs (or [Web Pixels API’s `browser` interface](https://shopify.dev/docs/api/web-pixels-api/standard-api/browser)) it is possible to create a session-length cookie, which is equivalent functionality.