Setting up cookie consent on a Shopify store
Shopify's Customer Privacy API passes a visitor's choice to Shopify's own cookies and pixels, but scripts in theme.liquid ignore it. This gu...
One line. No app.
Paste one line into theme.liquid and your store asks shoppers before it tracks them. There is no app to install and no app fee, and your theme's templates stay as they are.
The Free plan is free forever and covers up to 5 sites. No Shopify app to install.
Works with the tools on your Shopify store
What your shoppers see
The banner sits on your storefront in your colours. Accept all and Reject all are side by side at the same size, and Manage preferences opens the categories one by one.
Why it matters
Shopify sets its own analytics and cart cookies, and every app you add can bring more. In the EU and the UK, the ones that are not strictly necessary need consent before they are set.1
25-60
Shopify's own analytics and cart cookies, plus whatever your theme and apps load. The number grows with every app you add.
Reviews, email capture, loyalty, upsells, live chat and ad pixels each add scripts to your storefront. An app you installed for one feature can set marketing cookies on the first page.
A store based anywhere that sells to Europe can fall under it, and data protection authorities have issued cookie decisions against online retailers for years.
Google asks for Consent Mode v2 signals on traffic from the EEA and the UK before Google Ads and GA4 use it for remarketing and conversion modelling. Without them, you lose audience data on traffic you paid for.
Kukie.io files Shopify's cart, session and checkout cookies under Essential, the category that is always active. Shopify's checkout pages do not load your theme.liquid, so the banner script does not run there.
Cookie reference
Shopify's own cookies, from Shopify's cookie list of 9 October 2026, and the app cookies found most often on Shopify stores, grouped the way a consent banner groups them. Your store's exact set depends on its theme and apps.
These are the usual categories. The scanner shows what your own store sets, and the cookie database explains any of 3,300+ known cookies.
Your options
Shopify's built-in banner, a consent app from the App Store, or a line of embed code. They solve different parts of the problem.
| Capability | Shopify's built-in banner | A Shopify consent app | Kukie.io embed code |
|---|---|---|---|
| Setup | A setting in the admin | App install and review | One line in theme.liquid |
| Extra monthly cost | None | Usually per month, per store | Free plan available |
| Access to store data | Built into Shopify | App permissions requested | None requested |
| Holds third-party scripts until consent | Limited to the Customer Privacy API | Varies by app | Yes, 30+ known trackers plus your own domains |
| Cookie inventory | No | Varies by app | Yes, from a scan of your store |
| Consent model by region | Region settings | Varies by app | Yes, a rule per country or region |
| Google Consent Mode v2 | Through Shopify's own integration | Varies by app | Built in, plus Microsoft UET and Matomo |
| Consent log you can export | No | Varies by app | Yes, with a consent ID for each choice |
Compared on 30 September 2026. Consent apps differ, so their column describes the range rather than one app.
They can work together. Many merchants keep Shopify's Customer Privacy API for Shopify's own tracking and use Kukie.io for the cookie inventory, script blocking, rules by region and the consent log.
How to add it
You need your Shopify admin and a browser tab. No developer, and nothing to change in your theme's templates.
myshopify.com or custom domain as a site and copy the one-line embed code.Layout / theme.liquid, paste the line directly after <head> and select Save.The line you paste
<script src="https://cdn.kukie.io/s/YOUR-SITE-KEY/c.js" async></script>
Built for Shopify
Several markets, many apps, a theme you did not write and a checkout you cannot change. All of it works from the same line of embed code.
Cart, session and localisation cookies are filed under Essential, and Shopify's analytics and attribution cookies where they belong.
Sell into the EU, the UK and the US from one store, and show each shopper the consent model you set for their region.
Once you switch it on, the defaults are set before any Google tag runs and updated the moment the shopper chooses.
Meta Pixel, TikTok, Hotjar, Clarity, Intercom and 30+ known trackers wait, and you can add the domain of anything an app adds.
4 layouts, your colours, your corner radius and your own text. The banner keeps its styles apart from your theme's, so neither restyles the other.
With Auto-Translation on, the built-in banner text follows the shopper's browser language, right-to-left languages included.
Every choice is kept with its date and a consent ID, and you can export the records when someone asks for them.
Dawn and every Online Store 2.0 theme, Shopify Plus, and headless storefronts on Hydrogen, Remix or Next.js, where the line goes in the root document head.
Generate a cookie policy and a privacy policy from your scan results, then link them from your store's footer.
Built for merchants
The scanner tells you what your store sets, the categories arrive filled in, the banner matches your theme, and the consent records are there when someone asks for them.
Every market you ship to
Shopify Markets makes it easy to start selling in a new country, and that country's privacy law comes with it. Kukie.io reads the shopper's country and applies the consent model you set for it.
| Law | Shoppers in | What it asks for |
|---|---|---|
| GDPR and ePrivacy | The EU and the EEA | Consent before cookies that are not strictly necessary |
| UK GDPR and PECR | The United Kingdom | The same prior consent for cookies, enforced by the ICO |
| CCPA and CPRA | California | A right to opt out of the sale or sharing of personal information, and a link to do it |
| LGPD | Brazil | Consent and transparency for the personal data of shoppers in Brazil |
<script src="https://cdn.kukie.io/s/YOUR-SITE-KEY/c.js" async></script> directly after the opening <head> tag and select Save. The banner appears on every page of your storefront at once. There is no app to install. The Shopify installation guide has every step._shopify_essential for the session, checkout and fraud protection, _shopify_analytics for Shopify's analytics and _shopify_marketing for its marketing data, each kept for a year, plus cart, cart_currency and localization for the cart. Shopify stopped setting _shopify_y and _shopify_s on 1 January 2026. A typical store adds Google Analytics 4, Google Ads, Meta Pixel, TikTok, Klaviyo, Judge.me and other app cookies. Cart and essential cookies are strictly necessary. In the EU and the UK, most of the others need consent.Still stuck? The Shopify installation guide has screenshots of every step, and our support team will look at your store.
Scan your store to see what it sets today. Then paste one line into theme.liquid.
Kukie.io provides tools to collect and record consent. It is not legal advice, and using it does not by itself make a website compliant with any law.