E-commerce · Install guide
Cookie consent for Shopify
Updated
Paste one script into your theme and Kiescy shows a consent banner that follows each shopper's law, holds back ad pixels until they agree and passes Google Consent Mode v2 signals to Google Ads.
- Setup time
- About 5 minutes
- Coding
- None: copy and paste
- Laws covered
- GDPR, UK GDPR, CCPA, DPDP
- Google Consent Mode v2
- Built in, basic or advanced
Set up cookie consent on Shopify in 3 steps
- Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
- Paste one script into ShopifyYour banner appears and starts holding back trackers until visitors choose.
- Check it worksOpen your site in a private window and run the free check to confirm nothing loads early.
Why Shopify sites need cookie consent
Shopify stores sell across borders by default, and nearly every store connects Google, Meta or TikTok channels for ads. EU shoppers must be asked before those pixels run, and California shoppers need an opt-out from sharing.
Your options on Shopify
| Approach | Good for | Watch out for |
|---|---|---|
| Shopify's built-in cookie banner | Stores using only Shopify channel apps | Covers Shopify's sandboxed pixels; limited control over theme scripts and records |
| A consent app from the App Store | Merchants who want an admin UI | Monthly cost; check Consent Mode v2 and regional rules |
| Kiescy in theme.liquid | Stores with theme scripts (Hotjar, custom pixels) and several regions | Channel-app pixels still follow Shopify's Customer privacy setting |
Add your privacy policy
Shopify's own checkout links to the policies set in Settings → Policies. New stores have Shopify's automated privacy policy switched on (Settings → Customer privacy); to use your own policy, turn the automation off first, then paste your Kiescy hosted policy URL or copy the text in. See what a Shopify privacy policy must say. For a page in your theme, go to Online Store → Pages → Add page, switch the editor to HTML (the <> button) and paste the embed.
<div data-kiescy-doc="privacy"></div>
<script src="https://script.kiescy.com/embed/policy/YOUR_SITE_KEY.js" async></script>Good to know
Apps you install through the Shopify App Store and pixels added through Settings → Customer events run in Shopify's sandbox. Check their own consent settings, and use Shopify's Customer Privacy settings alongside Kiescy for those.
Check that it works
Open your site in a private window: the banner should appear for a first-time visitor. Then run the free privacy check, which opens your site as a new EU visitor and lists anything that still loads before consent.
Kiescy's monitoring repeats that check on a schedule and emails you if a new script starts tracking before consent.
What your Shopify visitors see
Kiescy detects where each visitor is and shows the version their law requires, so you don't have to choose between the strictest banner for everyone and no banner at all.
Trackers Shopify sites usually load
These are the tools that most often need consent on Shopify sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.
| Tool | Category | What happens |
|---|---|---|
| Google & YouTube channel (Google Analytics 4, Google Ads) | Analytics / advertising | Runs through Shopify's sandbox; follows Shopify's Customer Privacy consent |
| Facebook & Instagram channel (Meta Pixel) | Advertising | Also runs through Shopify's sandbox |
| TikTok, Pinterest, Snapchat channels | Advertising | Same: managed by Shopify's consent setting |
| Klaviyo, Omnisend onsite tracking | Advertising / analytics | Usually added via theme app embeds |
| Reviews apps (Judge.me, Loox, Yotpo) | Performance | Some set their own cookies |
| Hotjar, Microsoft Clarity | Analytics | Pasted into theme.liquid; Kiescy holds them back |
Google Consent Mode v2 on Shopify
Shopify runs two kinds of tracking. Theme scripts (anything you paste into theme.liquid) are controlled by Kiescy: it sends Consent Mode v2 defaults and updates, and holds back known trackers. Sales channel apps and Customer events pixels (Google & YouTube, Facebook & Instagram, TikTok) run in Shopify's sandbox and follow Shopify's own Customer Privacy consent.
So for a store that uses those channel apps, set matching regional rules in Settings → Customer privacy as well, so both layers agree. The Google & YouTube app passes Shopify's consent to Google as Consent Mode signals.
New to Consent Mode? Read basic vs advanced Consent Mode v2.
Troubleshooting
The banner doesn't show in the theme editor
The theme editor preview doesn't always run custom head scripts. Open your live store, or the theme's preview link, in a private window.
Shopify's own cookie banner also appears
Turn off Shopify's banner in Settings → Customer privacy, or keep it only for regions where you don't show Kiescy, so shoppers see one banner.
I changed theme and the banner disappeared
The script lives in each theme's theme.liquid. Paste it into the new theme too before publishing it.
Pixels added under Customer events still fire
Those pixels follow Shopify's Customer Privacy setting, not theme scripts. Set the pixel's permission to require marketing or analytics consent in Settings → Customer events.
Compliance checklist for Shopify
- A consent banner that blocks non-essential trackers until the visitor agrees (opt-in for the EU, UK and India).
- A "Do Not Sell or Share" option for California visitors, and Global Privacy Control honored.
- A privacy policy that names the tools above, linked from every page.
- A cookie policy listing the cookies your scan finds.
- A way for people to request, correct or delete their data.
- Records of each consent choice, kept as proof.
- Add your refund, privacy, terms and shipping policies in Settings → Policies, so Shopify links them in the checkout footer.
- Turn on Shopify's "Do not sell or share" handling for California if you use ad channel apps.
Guides for Shopify site owners
Questions
Does this work on Shopify's checkout pages?
Shopify controls the checkout, so custom theme scripts don't run there. Kiescy's banner covers your storefront theme; checkout and Shopify's sandboxed pixels follow Shopify's own Customer Privacy consent, which Kiescy doesn't set. Configure Settings → Customer privacy to match your regions.
Do I need a paid Shopify plan?
Any plan that lets you edit theme code works, which includes all standard Shopify plans.
Will the banner slow my store down?
The script is small and cached, and its configuration is cached on the shopper's device after the first visit.
Is Shopify GDPR compliant by default?
Shopify gives you tools (a consent setting, data request handling for customers), but you're responsible for your store: a banner that covers your theme scripts, an accurate privacy policy and honoring requests.
What cookies does a Shopify store set?
Shopify sets essential cookies such as cart, secure_customer_sig, localization and _tracking_consent, and analytics cookies such as _shopify_y and _shopify_s. Apps and pixels you install add their own. A cookie scan lists everything your store actually sets.
Official Shopify documentation
Menus move. If a step above doesn't match what you see, Shopify's own docs show the current way to add code.
Get compliant this afternoon, not this quarter.
Set up your policies, banner and request form in one place. Free while Kiescy is in early access.