Integrations

Add a cookie banner to your Shopify store

Install the CookieConsentHQ app from the Shopify App Store, click Set up the banner, then switch on the Cookie banner app embed and save. You edit no theme code, and each visitor's choice is passed to Shopify's Customer Privacy API.

Get your install codeFree plan, no card needed.
Installation
Shopify app with an app embed; theme.liquid snippet as the manual alternative
App Store listing
apps.shopify.com/cookieconsenthq
Account needed to start
No; the app creates a Free site for the store
Consent signal
Shopify Customer Privacy API, on each visitor choice
Plans in the app
Free; Starter $8, Growth $18, Business $39 a month; billed by Shopify
Page coverage
Storefront theme pages; not Shopify checkout
Verification
Free scanner at /check

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.

  1. Install the app from its App Store listing and open it from Apps, CookieConsentHQ.
  2. 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.
  3. Click Turn on the banner. The theme editor opens with the Cookie banner app embed switched on.
  4. Click Save in the theme editor.
  5. Turn off Shopify's own cookie banner under Settings, Customer privacy.
  6. 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.

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 analytics field.
  • Marketing sets marketing and sale_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.

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.

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.

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.

  1. In the Shopify admin, go to Online Store, Themes.
  2. Open the three-dot menu and choose Edit code.
  3. Open layout/theme.liquid and find the opening <head> tag.
  4. Paste the snippet right after it and save.
  5. 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.

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.

Questions

Is CookieConsentHQ a Shopify app?
Yes. CookieConsentHQ is listed in the Shopify App Store and adds its cookie banner to your storefront through an app embed, so you don't edit theme code.
Do I need a CookieConsentHQ account to use the Shopify app?
No. Set up the banner creates a CookieConsentHQ site on the Free plan for your store. You only sign in if you want to claim the dashboard to edit the banner and read the consent log.
Why doesn't the banner show after I install the app?
Shopify keeps app embeds off after install. Click Turn on the banner in the app, which opens the theme editor with the Cookie banner app embed switched on, then click Save.
Should I keep Shopify's own cookie banner?
No. Turn it off under Settings, Customer privacy, so visitors don't see two banners.
Does the banner run on Shopify checkout pages?
No. Checkout pages can't render app embeds, and a script pasted into theme.liquid doesn't run there either. The banner covers your storefront theme pages.
How are plans billed in the Shopify app?
Through Shopify, on the store's Shopify bill. Free, Starter, Growth and Business are offered; Agency is not sold through Shopify, because one Shopify subscription covers one store.
Can I connect a site I already have in CookieConsentHQ?
Yes. Choose Connect an existing site in the app, sign in as the owner of the workspace, and pick the site. The storefront then loads that site's banner.
Can I still paste the script into theme.liquid instead?
Yes. Paste the snippet from your dashboard's Install tab right after the opening head tag in layout/theme.liquid.