Skip to content

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

  1. Create a free accountAdd your website. Kiescy scans it and finds the trackers that need consent.
  2. Paste one script into WooCommerceYour 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 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

ApproachGood forWatch out for
WooCommerce on its ownCart and checkout cookies, essentialNo banner at all; it leaves consent to you
A WordPress consent pluginBasic banners inside wp-adminOften blocks only what it knows; many don't keep consent records or regional rules
KiescyRegional rules, records, Consent Mode v2, scansOne 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.

Custom HTML block on your policy page
<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.

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

ToolCategoryWhat happens
Facebook for WooCommerce (Meta Pixel, Conversions API)AdvertisingBrowser pixel held back; server-side events need your own consent check
Google for WooCommerce / Site KitAnalytics / advertisinggtag.js held back; Consent Mode signals sent
WooCommerce order attribution (sbjs_* cookies)AnalyticsRecords where orders come from
Klaviyo, Mailchimp for WooCommerceAdvertisingOnsite tracking scripts
Product reviews widgetsPerformanceSome set third-party cookies
Stripe, PayPalEssentialFraud prevention; no consent needed

Cookies WooCommerce sets itself

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

CookiePurposeCategory
woocommerce_cart_hashDetects cart changesEssential
woocommerce_items_in_cartTells WooCommerce the cart isn't emptyEssential
wp_woocommerce_session_*Links a shopper to their cartEssential
sbjs_migrations, sbjs_current, sbjs_first, sbjs_sessionOrder attribution (traffic source of each order)Analytics

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

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.