Shopify cookie banner: what Accept and Reject do
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.


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.
| Moment | Shopify cookies set | Other sites contacted | Shopify says |
|---|---|---|---|
| Before any answerBoth runs matched | _shopify_analytics_shopify_marketing | None | Tracking allowedno choice recorded |
| After Accept, same page | _shopify_analytics_shopify_marketing | None | Tracking allowedrecorded: yes to all four |
| After Accept, next page load | _shopify_analytics_shopify_marketing | None | Tracking allowedrecorded: yes to all four |
| After Reject, same page | Neither analytics nor marketing | None | Tracking not allowedrecorded: no to all four |
| After Reject, next page load | Neither analytics nor marketing | None | Tracking 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
- Before the visitor answered, the cookies were already there. Our visitor came from the United States, which Shopify’s API reported as region
USKY._shopify_analyticsand_shopify_marketingwere in the browser, and Shopify’s API said analytics and marketing were allowed while recording no choice. - Reject took them away. After Reject, both cookies were gone on the same page and stayed gone on the next page load. Shopify’s record changed to “no” for all four categories, and the API reported tracking as not allowed.
- Accept kept them. After Accept the record was “yes” for all four and the cookies stayed.
- No other site was contacted in any of the five moments. The dev store has no pixel or tracking tag installed, so this says nothing about a store that has one.
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:
- Accept all and Reject all use the same button class in the same row.
- Reject sets marketing, analytics, preferences and sale of data to false in Shopify’s Customer Privacy API.
- The banner never renders on checkout pages.
- The storefront scripts make no third-party requests.
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
- Open your store in a private window. Do not click the banner yet.
- In Chrome, press F12, open Application, then Cookies, and note what is listed.
- Open the Console and run
window.Shopify.customerPrivacy.currentVisitorConsent(). It shows what Shopify has recorded, which is what we read. - 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
- Cartkept ConsentA cookie banner that matches your theme, with Reject beside Accept and a no passed on to Shopify.
- Shopify store maintenance checklistSeven monthly checks, three timed on a dev store, each matched to the app that does it.
- Shopify cookie policy: what a store really setsShopify's published cookie list against the cookies one dev store set.