How do I add a cookie banner to Shopify with the app?
Install the CookieConsentHQ app from the Shopify App Store, set up the banner in the app, and switch on its app embed in your theme. The whole Shopify cookie banner setup happens in the Shopify admin, with no theme code to edit.
- Install the app from its App Store listing and open it from Apps, CookieConsentHQ.
- Click Set up the banner. The app creates a CookieConsentHQ site for your store's domain and its myshopify.com domain, on the Free plan, and publishes the default banner.
- Click Turn on the banner. The theme editor opens with the Cookie banner app embed switched on.
- Click Save in the theme editor.
- Turn off Shopify's own cookie banner under Settings, Customer privacy.
- Open your storefront in a private window and check that the banner appears.
Shopify keeps app embeds off after an install, so step 4 matters: until you save, the storefront shows nothing. The app's home page tells you whether the embed is on in your live theme and shows the Turn on the banner button again when it is off.
You can also switch the embed on by hand in the theme editor's App embeds panel. The embed has an optional Site key field. Leave it empty when the store is connected in the app; otherwise paste the site key (it starts with sk_) or the script URL from your dashboard's Install tab. The embed rebuilds the script URL from the key and ignores anything that isn't a valid key.
If you already use CookieConsentHQ, choose Connect an existing site instead of step 2. You sign in as the workspace owner, pick the site, and the storefront switches to that site's banner.
What does the Shopify cookie consent app pass to Shopify?
Each time a visitor makes a choice, the banner calls Shopify's Customer Privacy API with that choice. It never sends a choice on page load, only after a visitor clicks.
The banner's categories map onto Shopify's consent fields like this:
- Analytics sets Shopify's
analyticsfield. - Marketing sets
marketingandsale_of_data. - Functional sets
preferences.
Accept all sets every field to yes, and Reject all sets every field to no. Shopify features that read the Customer Privacy API, such as its own analytics and marketing tools, then see the visitor's choice. The same call happens when you install with the theme snippet, because it is part of the banner script rather than the app.
Should I turn off Shopify's own cookie banner?
Yes. Turn off Shopify's built-in cookie banner under Settings, Customer privacy, so visitors see one banner instead of two.
The app does not switch Shopify's banner off for you; the app's home page and the app embed settings both remind you to do it. Shopify's customer privacy documentation describes where its banner settings live. With only the CookieConsentHQ banner showing, visitors get Accept all, Reject all and a preferences panel with functional, analytics and marketing categories.
Does the cookie banner run on Shopify checkout?
No. Shopify checkout pages can't render app embeds, so the banner runs on your storefront theme pages and stops at checkout.
The manual install has the same limit: a script in theme.liquid is not loaded on Shopify-controlled checkout pages. Don't treat a clean storefront test as proof of what happens during checkout. The consent log records choices made where the banner runs, with the time, region and choice for each decision.
Which plans can I buy through the Shopify app?
The app sells the Free, Starter, Growth and Business plans, at the same prices as the website, and Shopify bills them. Agency is not offered in the app, because one Shopify subscription covers one store.
| Plan | Monthly | Annual | Pageviews a month |
|---|---|---|---|
| Free | $0 | 25,000 | |
| Starter | $8 | $80 | 150,000 |
| Growth | $18 | $180 | 750,000 |
| Business | $39 | $390 | 5,000,000 |
Click Choose plan in the app to open Shopify's plan page. Starter adds region rules, the health monitor and removal of CookieConsentHQ branding; Growth adds A/B tests and tracker alerts. Going over the pageview allowance never switches the banner off. Uninstalling the app ends a paid plan straight away.
A site connected to a Shopify store is billed only through Shopify, so the dashboard's own checkout is not offered for it. A site that was already on a paid plan from cookieconsenthq.com when you connected it keeps that billing. See pricing for what each plan includes.
How do I claim the store's site into a CookieConsentHQ account?
Click Claim the dashboard in the app, sign in to CookieConsentHQ with an emailed link, and confirm the claim. The store's site then moves into your workspace, where you can edit the banner and read the consent log.
Claiming is optional; the banner works without it. The claim link is single-use and expires after 10 minutes, so start it from the app when you are ready to sign in. You need to be the owner of the workspace you claim into.
The workspace's rules apply after the claim. The Free plan covers one site per workspace, so if your workspace already has a Free site, choose a paid plan for the store in the app first, or claim it into another workspace. While the store's site is unclaimed, the app won't let you disconnect it, because its banner settings and consent log would have no owner.
How do I install the Shopify cookie banner without the app?
Paste the script from your dashboard's Install tab into layout/theme.liquid, right after the opening <head> tag. This is the manual alternative to the app embed.
- In the Shopify admin, go to Online Store, Themes.
- Open the three-dot menu and choose Edit code.
- Open
layout/theme.liquidand find the opening<head>tag. - Paste the snippet right after it and save.
- Turn off Shopify's own cookie banner under Settings, Customer privacy.
The snippet has this format, with your own site key:
<script src="https://cdn.cookieconsenthq.com/s/YOUR_SITE_KEY.js"></script>
It must load synchronously, without async or defer, so the banner runs before trackers. Install guides for other platforms are in the docs.
Can the app block trackers hardcoded in my theme?
Not if they run before the banner. Shopify places the app embed's script in <head> after its own scripts and after the scripts your theme puts in <head>, so a tracker pasted into theme.liquid above that point runs first.
For those tags, change the markup so the browser doesn't run them until consent:
<script type="text/plain" data-cchq="marketing" src="..."></script>
Use analytics or functional instead of marketing to match the script's purpose. For an embedded iframe, use data-cchq="marketing" with data-cchq-src in place of src. The other option is the manual install, with the snippet as the first thing in <head>.
Known trackers loaded after the banner are blocked until the visitor accepts. These controls cover markup you can edit; they don't prove that every Shopify-managed or app-managed tracker follows the banner. Shopify pixels firing before consent shows which tags follow Shopify's Customer Privacy API, which bypass it from the theme, and how to find them.
How do I test the Shopify cookie banner?
Open a storefront page in a private window, check that the banner shows, and run the free cookie scanner on that page. It reports cookies set before consent, hardcoded tracker tags and Google Consent Mode v2 defaults.
To confirm the choice reaches Shopify, accept or reject on the storefront, then run Shopify.customerPrivacy.currentVisitorConsent() in the browser console. Every field should read yes after Accept all and no after Reject all.
The free scanner checks one page, once. For more coverage, the cookie scanner in your dashboard crawls up to 50 pages on Free and 150 on paid plans. CookieConsentHQ gives you the consent tools; you remain responsible for how your store tracks visitors and which laws apply to it. This page is not legal advice.