WooCommerce Integration

Cookie banner for WooCommerce

The free Consentify plugin for WordPress, set up for a shop: cart and checkout keep working, and tracking waits for the visitor's yes.

Overview

WooCommerce runs on WordPress, so a WooCommerce store uses the same Consentify plugin as any other WordPress site. There is no separate WooCommerce extension to install and no extra fee for being a shop.

The plugin prints the Consentify script as the very first script in your page head, before your theme and other plugins. Consent defaults are in place before any tag on the page runs, including the ones that WooCommerce marketing plugins add.

Get the plugin on WordPress.org

Installation

Step 1 - Add your store in Consentify

Create a free account, add your store's domain and design the banner in the dashboard. Copy the public token for the domain.

Step 2 - Install the plugin

In WordPress, go to Plugins, Add New, search for Consentify and activate it. Paste your public token under Settings, Consentify and save.

Step 3 - Install WP Consent API

Install the free WP Consent API plugin from WordPress.org. WooCommerce and several marketing plugins ask this API whether they may track. Consentify passes every answer on to it, so they follow the visitor's choice.

Step 4 - Move your tracking into Consentify

Remove the Google Analytics, Meta Pixel or TikTok snippets you added by hand, and enter their IDs under Integrations in Consentify instead. Consentify then loads each tag only after the visitor has accepted its category.

The free plan

Get your cookie banner live in 5 minutes

Paste one script tag into your site and the banner is live. No plugin to install, no code to write, nothing to pay.

  • 1 domain
  • 5,000 pageviews a month
  • 74 integrations
  • GDPR, ePrivacy and CCPA
Start for free

No credit card. Free forever.

Compare plans

What WooCommerce sets, and what needs consent

WooCommerce's cart and session cookies (woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_*) are needed for the cart and checkout to work. They count as necessary and do not wait for consent.

Order Attribution is different. Since WooCommerce 8.5 it is on by default and writes sbjs_* cookies that record where each visitor came from. That is marketing, so it needs consent. With WP Consent API installed, WooCommerce waits for marketing consent before it writes them.

Without WP Consent API, WooCommerce writes those cookies on the first page view, whatever the visitor chooses. Your only other option is to turn Order Attribution off under WooCommerce, Settings, Advanced, Features.

FAQ

Will the banner break my cart or checkout?

No. Cart and session cookies are necessary and are never held back, so customers can add to cart and check out before they answer the banner.

Does it work with Google for WooCommerce, Site Kit and pixel plugins?

Google Site Kit and Pixel Manager for WooCommerce read consent from the WP Consent API, so they follow the visitor's choice once that plugin is installed. For Google tags, turn on Google Consent Mode v2 in Consentify. Its defaults are set before any Google tag on the page runs. For full control, remove the plugin's tag and add the ID in Consentify instead.

Does it work with page caching?

Yes. All consent logic runs in the browser, so cached pages work as normal. If a performance plugin combines or delays scripts, exclude the Consentify script from it.

What does it not cover?

Tracking a plugin decides on in PHP, on your server, before the page reaches the browser. Server-side conversion APIs are an example. Check the settings of those plugins, or ask their developers how they handle consent.

Free scan, no account

Not sure what's running on your WooCommerce site?

Scan it first and you'll know exactly which scripts need consent before you set up the banner. Takes about ten seconds.

  • Results in about 10 seconds
  • No account needed
  • Shareable report link

Open the free GDPR scanner