This guide gives an overview; it does not replace legal advice suited to your situation.

The rule for a shop

A cookie is essential when the shop cannot provide the requested service without it: remembering the basket, keeping the checkout session, keeping the customer logged in, remembering their cookie choice, securing the form. These are set without consent, and still appear in the cookie policy.

Everything else waits for the visitor’s consent: non-exempt audience measurement, attributing sales to a campaign, Meta, Google Ads or TikTok pixels, email marketing tools that recognise the visitor, reviews and chats loaded from another service.

Shopify

Essential (no consent): cart (basket contents), _secure_session_id (browsing session), secure_customer_sig (customer login), _tracking_consent (the visitor’s cookie choice), localization and cart_currency (country and currency), keep_alive.

Subject to consent: Shopify’s analytics and marketing, and above all what your apps and pixels add (_fbp for Meta, _ga for Google Analytics, _ttp for TikTok, Klaviyo cookies…). Shopify says it stopped setting its old _shopify_y and _shopify_s cookies in 2026; the exact list depends on your theme and apps.

Shopify exposes the Customer Privacy API: a banner connected to it passes the visitor’s choice to the shop and to the pixels Shopify manages, which hold back on their own when the visitor refuses.

WooCommerce

Essential (no consent): woocommerce_cart_hash and woocommerce_items_in_cart (the basket has changed), wp_woocommerce_session_… (the identifier that finds the basket), and on the WordPress side wordpress_logged_in_… and wordpress_sec_… (login).

Subject to consent: the sbjs_… cookies of order attribution, added to WooCommerce in early 2024, which remember where the visitor came from (search engine, campaign, social network). It can be turned off in WooCommerce, Settings, Advanced, Features, or driven by consent through the WP Consent API. Add to that the analytics and pixels of your plugins.

Checking your own shop

No ready-made list describes your shop: each app, plugin and pixel adds its own. Open your shop in a private window, accept nothing, and look at the cookies set (browser developer tools, Application or Storage tab). Anything that is not in the essential list above is a tracker set too early.

With Optooki

Optooki’s Shopify app is connected to the Customer Privacy API, and the WordPress plugin passes the visitor’s choice to WooCommerce through the WP Consent API. The scanner does the check above for you: it visits the shop without consent, lists what is set too early, then accepts the banner to check the rest.

Frequently asked questions

Does the basket cookie need consent?
No. Remembering the basket is the service the visitor asks for by adding a product: this cookie is essential.
Is Shopify’s built-in banner enough?
It manages consent for tools connected to Shopify. Scripts added by hand to the theme or by some apps escape it: check what is set before consent.
Should WooCommerce order attribution be turned off?
Not necessarily: it only needs to wait for consent. If you never read that data, turning it off also lightens the banner.

Your cookie banner, ready before your next coffee.

Create your account, customise the banner and add one line of code. Free for one site, no credit card required.