E-commerce · Install guide
Cookie consent for WooCommerce
Updated
WooCommerce stores usually run more trackers than any other kind of WordPress site: ad pixels, order attribution, reviews and email capture. Kiescy holds them back until shoppers agree, without touching the cart or checkout.
- 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 WooCommerce in 3 steps
- Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
- Paste one script into WooCommerceYour 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 WooCommerce sites need cookie consent
Stores sell across borders. A shop in India or the US with customers in Germany has to follow the GDPR for them, and ad pixels from Meta, Google and TikTok are exactly what EU regulators check first. Cart and checkout cookies are essential and keep working without consent.
Your options on WooCommerce
| Approach | Good for | Watch out for |
|---|---|---|
| WooCommerce on its own | Cart and checkout cookies, essential | No banner at all; it leaves consent to you |
| A WordPress consent plugin | Basic banners inside wp-admin | Often blocks only what it knows; many don't keep consent records or regional rules |
| Kiescy | Regional rules, records, Consent Mode v2, scans | One script; extensions that print inline code before it can't be held back, so give it top priority |
Add your privacy policy
Link your privacy policy and terms on the checkout page: set them under WooCommerce → Settings → Advanced → Page setup (Terms and conditions) and Settings → Privacy (Privacy policy page). WooCommerce shows them next to the Place order button.
<div data-kiescy-doc="privacy"></div>
<script src="https://script.kiescy.com/embed/policy/YOUR_SITE_KEY.js" async></script>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 WooCommerce 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 WooCommerce sites usually load
These are the tools that most often need consent on WooCommerce sites, and how Kiescy treats them. Run a cookie scan to see exactly what yours loads.
| Tool | Category | What happens |
|---|---|---|
| Facebook for WooCommerce (Meta Pixel, Conversions API) | Advertising | Browser pixel held back; server-side events need your own consent check |
| Google for WooCommerce / Site Kit | Analytics / advertising | gtag.js held back; Consent Mode signals sent |
| WooCommerce order attribution (sbjs_* cookies) | Analytics | Records where orders come from |
| Klaviyo, Mailchimp for WooCommerce | Advertising | Onsite tracking scripts |
| Product reviews widgets | Performance | Some set third-party cookies |
| Stripe, PayPal | Essential | Fraud prevention; no consent needed |
Google Consent Mode v2 on WooCommerce
Kiescy sets Consent Mode v2 defaults before Google for WooCommerce or Site Kit loads gtag.js, then updates them when shoppers choose, so Google Ads conversion modeling keeps working for EU traffic.
Server-side integrations such as Meta's Conversions API send data from your server, where no banner can reach. Only send those events for orders where the shopper allowed advertising.
New to Consent Mode? Read basic vs advanced Consent Mode v2.
Troubleshooting
The Meta Pixel still fires on page load
Facebook for WooCommerce prints the pixel inline. Make sure the Kiescy script prints first (priority 1 in WPCode), and run a cookie scan so facebook.net is in your block list.
Checkout breaks after adding the banner
Check that payment domains (stripe.com, paypal.com) are categorized as essential in Kiescy. They are by default; a custom rule may have changed that.
Order attribution shows "Unknown" for EU orders
That's expected when shoppers decline analytics: attribution cookies aren't set without consent.
Compliance checklist for WooCommerce
- 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.
- Terms and privacy policy linked at checkout (WooCommerce → Settings → Advanced and Settings → Privacy).
- Refund and shipping policies linked from the footer and order emails.
- Marketing emails only to shoppers who opted in at checkout.
Guides for WooCommerce site owners
Questions
Will the banner slow down my store?
The script is small and cached on the shopper's device after the first visit. It doesn't run on the server, so it works with any caching plugin.
Does it work with block-based checkout?
Yes. The banner runs independently of WooCommerce's cart and checkout blocks.
Does WooCommerce need a cookie banner?
If you sell to people in the EU, UK or India and use analytics, ad pixels or embedded content, yes. Cart and session cookies alone don't need consent.
Official WooCommerce documentation
Menus move. If a step above doesn't match what you see, WooCommerce'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.