How to add a cookie banner to Shopify
KookiOk has no Shopify app to install. On Shopify it works as a pasted one-line script that you add to your theme code. The whole process takes a few minutes and needs no developer:
- Create a free KookiOk account, add your Shopify store domain, and let KookiOk scan it to find and classify the cookies it sets.
- Design your banner: pick a template and your brand colour, or describe your brand and let AI style it. Copy the one-line install script KookiOk gives you.
- In your Shopify admin, go to Online Store -> Themes.
- On your current theme, click the three-dot (...) menu and choose Edit code.
- Under Layout, open theme.liquid and find the closing </head> tag.
- Paste the KookiOk one-line script before </head> (ideally as the first script in the <head>, before any analytics or marketing tags), then click Save.
- Open your store in a private window to confirm the banner appears and that trackers stay blocked until you accept.
Because the script lives in theme.liquid, it loads on every page of your store automatically. If you switch or duplicate themes later, paste the same line into the new theme.liquid so the banner keeps showing.
After you paste the script and save your theme, open your store in a private window: the KookiOk banner should appear before any non-essential cookies are set. Re-run a cookie scan to confirm trackers stay blocked until a visitor consents.
What you get free for your Shopify store
Everything you need to make a Shopify store compliant is included free - there is no paid tier, and no metering by page-views or traffic, which matters for a store that runs sales and ad campaigns:
KookiOk is free GDPR cookie-consent software. There is no paid plan to upgrade to - the only trade-off is a small "Powered by KookiOk" badge on the banner.
Why a Shopify store needs a consent banner
Most Shopify stores set non-essential cookies the moment a visitor lands. Shopify's own analytics, Google Analytics, the Meta (Facebook) Pixel, TikTok and Google Ads tags, and embedded content like YouTube videos or review widgets all store or read information on the shopper's device for measurement and advertising - none of which is strictly necessary to run the store.
Under the EU's ePrivacy rules and the GDPR, those non-essential cookies need the visitor's prior consent - they must be blocked until the shopper agrees, not loaded by default. A consent banner is how you ask for that consent, block trackers until it is given, and record the choice as proof.
The hard part is knowing what your store actually loads, because apps and pixels add trackers you may not have set up yourself. Run a free cookie scan of your store first: KookiOk crawls it with a headless browser and lists every cookie and tracker that fires before consent, so you can see exactly what the banner needs to gate.
Frequently asked questions
Does Shopify have a built-in cookie banner?
Shopify offers a basic cookie-banner setting tied to its Customer Privacy API, but it is limited and does not cover every tracker your apps and pixels add. Many merchants add a dedicated consent tool. With KookiOk you paste one line of script into your theme to get a full GDPR banner with prior-consent blocking, a cookie scanner and consent records.
Is the KookiOk Shopify cookie banner free?
Yes. KookiOk is free GDPR cookie-consent software with no paid tier and no limit on stores or page-views. You get the banner, a cookie scanner, prior-consent blocking, Google Consent Mode v2 and 5-year consent records at no cost - the only trade-off is a small "Powered by KookiOk" badge.
Do I need a cookie banner on Shopify?
If your store reaches visitors in the EU or UK and uses non-essential cookies - analytics, the Meta Pixel, Google Ads, TikTok, embedded videos or review widgets - then yes. Those trackers need prior consent under the ePrivacy rules and GDPR, so they must stay blocked until the shopper agrees. A consent banner handles that.
How do I add a cookie banner to Shopify without code?
KookiOk does not have a Shopify app, so you add it by pasting a single line of script. In Shopify admin go to Online Store -> Themes, open the theme menu (...) -> Edit code, paste the KookiOk one-line script before the </head> tag in theme.liquid, and click Save. No developer is needed - it is one copy-and-paste.
Is there a KookiOk Shopify app or plugin?
No. KookiOk has a dedicated plugin only for WordPress. On Shopify it is a pasted one-line script you add to your theme.liquid - there is no Shopify app, plugin or marketplace listing. The script loads on every page once it is in your theme.
Will the banner block trackers until shoppers consent?
Yes. KookiOk blocks non-essential cookies and scripts by default, so analytics, ad pixels and embeds stay blocked until the shopper opts in. It works with Google Consent Mode v2 and respects the Global Privacy Control (GPC) signal, and it records every choice as tamper-evident proof.