---
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/posts/shopifyy-and-shopifys-cookies-will-no-longer-be-set
  md: >-
    https://shopify.dev/changelog/posts/shopifyy-and-shopifys-cookies-will-no-longer-be-set.md
metadata:
  effectiveApiVersion: ''
  affectedApi: []
  primaryTag:
    displayName: API
    handle: api
  secondaryTag:
    displayName: Deprecation announcement
    handle: deprecation-announcement
  indicatesActionRequired: true
  createdAt: '2025-07-21T13:44:26-04:00'
  postedAt: '2025-08-04T12:00:00-04:00'
  updatedAt: '2025-08-04T11:18:00-04:00'
  effectiveAt: '2025-07-22T12:00:00-04:00'
---

August 4, 2025

# \_shopify\_y and \_shopify\_s cookies will no longer be set

DateAugust 4, 2025

Flags[Deprecation announcement](https://shopify.dev/changelog?filter=deprecation-announcement)[Action required](https://shopify.dev/changelog?action_required=true)

SurfacesAPI

### 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.
