cartkept

Shopify cookie banner: what Accept and Reject do

Data · Published 4 November 2026 · Tested 4 November 2026

On our dev store, a visitor from the US already had Shopify's analytics and marketing cookies before answering the banner. Reject removed both. Accept kept them.

Desktop storefront with a cookie banner across the bottom. Accept all and Reject all are the same size, with Customise beside them.The same banner on a 390 pixel wide phone, with Accept all and Reject all side by side above Customise.
The banner a first-time visitor to our dev store saw, on desktop and at 390 px. Captured 4 November 2026.

What the browser held at each step

One visitor from the United States, five moments. The last column is what Shopify's own Customer Privacy API reported at that moment.

MomentShopify cookies setOther sites contactedShopify says
Before any answerBoth runs matched_shopify_analytics_shopify_marketingNoneTracking allowedno choice recorded
After Accept, same page_shopify_analytics_shopify_marketingNoneTracking allowedrecorded: yes to all four
After Accept, next page load_shopify_analytics_shopify_marketingNoneTracking allowedrecorded: yes to all four
After Reject, same pageNeither analytics nor marketingNoneTracking not allowedrecorded: no to all four
After Reject, next page loadNeither analytics nor marketingNoneTracking not allowedrecorded: no to all four

Not shown: _shopify_essential, cart_currency and localization, which were in the browser at every moment. "Shopify cookies set" lists _shopify_analytics and _shopify_marketing, the two named for analytics and marketing.

Four things the table shows

Where this applies, and where it does not

We ran this from a United States address, and Shopify’s API named the region USKY. We did not change the store’s customer privacy settings, so we did not see what a visitor from another region, or a store set to collect only after consent, would get. Shopify’s own help page says of that setting that “data is collected from visitors from those regions only after obtaining consent.” For a store set that way, the first row of the table would look different. We did not test it.

Whether a store must ask for consent, and what counts as consent, depends on where its visitors are and the law there. We cannot tell you that, and nothing on this page is legal advice.

What we did not test: pixels and pasted tags

The dev store has no pixel app and no tag pasted into the theme, so every cookie in the table is Shopify’s own. We cannot say from this test whether a Google tag, a Meta pixel or another app’s script obeys the banner. Shopify’s help page says that if you use a third-party banner you should “integrate it with Shopify’s customer privacy settings”, and that for a custom web pixel you must “manually insert a code snippet to activate Google Consent Mode v2.” Those are Shopify’s words from Understanding customer privacy settings in your Shopify admin, which we read on 4 November 2026. Testing a pasted tag on the same dev store is the next test on our list.

What the Cartkept banner did

The banner in the screenshots is Cartkept Consent. In the capture it showed with Accept all and Reject all side by side, and a click on either one was recorded in Shopify’s own consent record. Its own test file, apps/consent-banner/test/storefront.test.ts, backs these points from the app’s side:

Its limits, from the product page: it keeps no record of each visitor’s consent, and it does not control a tag you pasted into your theme. It tells Shopify’s consent record and, where the page has Google’s gtag, Google’s consent mode.

Do you need a banner at all?

Maybe not. If your store pastes no tags and installs no pixel apps, and Shopify’s own banner and settings cover where your visitors are, Shopify’s free banner may be all you need. A banner app is for when you want a banner that matches your theme, or a Reject that sits beside Accept with the same weight. Check your own rules; we cannot do that for you.

Check your own store in five minutes

  1. Open your store in a private window. Do not click the banner yet.
  2. In Chrome, press F12, open Application, then Cookies, and note what is listed.
  3. Open the Console and run window.Shopify.customerPrivacy.currentVisitorConsent(). It shows what Shopify has recorded, which is what we read.
  4. Click Reject, reload the page, and compare.

Spot a mistake?

Write to hello@cartkept.com. Shopify changes its cookies and settings; this page was tested on 4 November 2026.

How we tested

Store
Cartkept development store (cartkept.myshopify.com), the Shopify sample-data theme, with the Cartkept Consent app embed on and one cookie banner rule live. No third-party pixel is installed.
Tested on
4 November 2026
Visitor
United States (the capture ran from a US network; getRegion() reported "USKY"). Headless Chromium 152.0.7977.82.
How
A fresh headless Chromium profile for each run, loading the storefront home page, waiting 9 seconds, then reading every cookie the browser holds (including HttpOnly ones), every host the page contacted, and the values window.Shopify.customerPrivacy reports. Then it clicked the banner's Accept all (run 1) or Reject all (run 2), waited 6 seconds, read the same things, and loaded the home page again. The only cookie carried in was the one that unlocks the store's password page; it is listed in every state.
Not tested
a third-party pixel or tag (the dev store has none installed); the region setting "Collected before consent" versus "Collected after consent" (not changed on the dev store); visitors outside the United States; checkout pages; other browsers or devices.

Keep reading