Skip to content

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

  1. Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
  2. Paste one script into ShopifyYour banner appears and starts holding back trackers until visitors choose.
  3. 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

ApproachGood forWatch out for
Shopify's built-in cookie bannerStores using only Shopify channel appsCovers Shopify's sandboxed pixels; limited control over theme scripts and records
A consent app from the App StoreMerchants who want an admin UIMonthly cost; check Consent Mode v2 and regional rules
Kiescy in theme.liquidStores with theme scripts (Hotjar, custom pixels) and several regionsChannel-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.

Page HTML
<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.

GoodEU, UK, India and other opt-in regions: an opt-in banner. Analytics, ad pixels and embeds wait until the visitor agrees; Reject is as easy as Accept. Banner text: We value your privacy. We use cookies to run this site and, with your permission, to measure visits and show relevant ads. Buttons: Accept all, Reject all, Customise.
GoodCalifornia and other US states: an opt-out notice with a "Do Not Sell or Share" link, and Global Privacy Control honoured automatically. Banner text: Your privacy choices. We share some data with advertising partners. You can opt out at any time. Buttons: Do Not Sell or Share My Personal Information, OK.

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.

ToolCategoryWhat happens
Google & YouTube channel (Google Analytics 4, Google Ads)Analytics / advertisingRuns through Shopify's sandbox; follows Shopify's Customer Privacy consent
Facebook & Instagram channel (Meta Pixel)AdvertisingAlso runs through Shopify's sandbox
TikTok, Pinterest, Snapchat channelsAdvertisingSame: managed by Shopify's consent setting
Klaviyo, Omnisend onsite trackingAdvertising / analyticsUsually added via theme app embeds
Reviews apps (Judge.me, Loox, Yotpo)PerformanceSome set their own cookies
Hotjar, Microsoft ClarityAnalyticsPasted into theme.liquid; Kiescy holds them back

Cookies Shopify sets itself

Besides the tools you add, Shopify sets some cookies of its own. Essential ones don't need consent, but they belong in your cookie policy.

CookiePurposeCategory
cartStores what's in the shopping cartEssential
secure_customer_sigKeeps customers signed in to their accountEssential
localizationRemembers the shopper's country and languageEssential
_tracking_consentStores the shopper's consent choice for ShopifyEssential
keep_aliveKeeps localization working between pagesEssential
_shopify_y, _shopify_sShopify's own store analytics (visitors and sessions)Analytics
_orig_referrer, _landing_pageRecords where a shopper came from and their first pageAnalytics

Names and lifetimes change over time, so treat this as a guide and rely on your own scan for your cookie policy.

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.