Skip to content
weLabsweLabsStorefront Playbook
Live demoQuickstart

Integrations

Complianz cookie consent

Run the storefront's cookie banner from the Complianz plugin in WordPress — the storefront draws it in its own design and holds tracking back until shoppers agree.

Complianz – GDPR/CCPA Cookie Consent is a WordPress plugin, but its banner and its script blocking only work on pages WordPress prints, which the storefront’s pages are not. With the Companion plugin, you keep running Complianz in wp-admin as usual: the storefront reads its settings, draws the banner in the store’s own design, and holds back every tracker Complianz recognises until the shopper agrees.

Where it shows
Every storefront page except the checkout and the order confirmation; the switches on your Cookie Policy page
Configure in
Complianz → Wizard and Consent Banner in WordPress; the Cookie Policy under StoreFront › Settings › Pages › Static Pages
Requires
Complianz – GDPR/CCPA Cookie Consent (the free plugin is enough), its wizard finished once; the Companion plugin
Try it in Demo Mode
Demo Mode runs an EU-style banner: open the storefront in a private window
The storefront home page with the cookie banner in the bottom-right corner: the title Manage Consent, Complianz's message, links to the Cookie Policy and Privacy Policy, and Accept, Deny and View Preferences buttons.
An EU store's first visit: the banner uses Complianz's words and the storefront's design.
  • A banner in your words and the store’s design. The title, message, buttons and category names are the ones typed in Complianz. Colours, shape, dark mode and right-to-left layouts are the storefront’s own.
  • Real choices. Accept, Deny and View preferences, with the categories your site uses: Functional (always on), Preferences, Statistics and Marketing. Each category’s explanation folds out on request.
  • Nothing optional runs before a yes in an opt-in region. Tag managers, pixels and analytics wait for the category they belong to.
  • A way back. A small Manage consent tab reopens the banner at any time, and your Cookie Policy page carries the same switches.
  • Their browser’s privacy signal is respected. A shopper whose browser sends Global Privacy Control or Do Not Track sees no banner, and nothing optional runs (when Complianz’s setting for it is on).
  • The choice is remembered for as long as Complianz says (365 days by default), and asked again when your cookie policy changes.
The banner's preferences view: Functional marked Always active, then Preferences, Statistics (with its explanation open) and Marketing, each with an empty checkbox, above Accept, Deny and Save Preferences.
View preferences opens the categories in place.
The banner on a phone: full-width Accept, Deny and View Preferences buttons stacked under the message, sitting above the storefront's bottom tab bar.
On a phone the buttons stack and the banner clears the tab bar.

The Companion plugin reads Complianz’s settings and sends them to the storefront with the rest of the store’s settings. The storefront then does what Complianz’s own script would do on a WordPress page:

  • It draws the banner from those settings, after the page loads (the choice lives in the shopper’s browser, so a returning shopper never sees it flash).
  • Complianz sorts your scripts. Everything in Header/Footer Scripts goes through Complianz’s own tracker detection. Known trackers (Meta Pixel, Hotjar, TikTok and many more) arrive marked with their category and stay inactive. So do the tags Complianz adds itself: the statistics tool from its wizard and your Script Center entries. Scripts Complianz doesn’t recognise run as usual.
  • The storefront releases them. When the shopper accepts a category, its scripts run, in page order.
  • It speaks Complianz’s language. The choice is kept in Complianz’s own cookies (cmplz_marketing and so on). Each accepted category is pushed to Google Tag Manager as a cmplz_event_<category> event, and Google Consent Mode v2 is updated, so Tag Manager setups written for Complianz keep working unchanged.

Your region in Complianz decides how the banner behaves:

Opt-in: EU, UK, South Africa, Brazil Opt-out: US, Canada, Australia
Before the shopper chooses Nothing optional runs Everything runs
Banner buttons Accept, Deny, View preferences Accept, View preferences (no Deny)
Category switches start Off On
Closing the banner (X) Decides nothing; nothing optional runs Keeps the defaults; everything keeps running
Global Privacy Control or Do Not Track No banner; nothing optional runs No banner; nothing optional runs

Set Complianz up as its own documentation describes, on its WordPress.org page. For the storefront, these are what matter:

  1. Complianz is active and its wizard has been finished once (Complianz → Wizard). Until then the storefront shows no banner. The region you choose there decides opt-in or opt-out.
  2. The consent banner isn’t disabled in Complianz → Consent Banner, and your region needs one. Otherwise the storefront shows no banner and your scripts load as typed.
  3. Your statistics tag is in one place only. Either Complianz adds it (its wizard’s statistics step), or it’s pasted into Header/Footer Scripts → Head. Not both, or it loads twice.
  4. Complianz’s cookie policy is your Cookies policy, chosen under StoreFrontSettingsPagesStatic Pages. Pick the page for your current region. Its “manage your consent” section becomes the storefront’s category switches.
  5. No other consent tool is pasted into StoreFront → Settings → Header/Footer Scripts. The notice at the top of that tab says Complianz is active (see Scripts and tags).

Once the wizard is finished, wait a minute, then open the storefront in a private window and reload once (see Good to know): the banner should appear, and in an opt-in region Google Tag Manager’s Preview mode should show consent “denied” until you click Accept.

Everything on Complianz → Consent Banner that changes what the banner says or does is followed. Its look is not: the storefront’s colours and design apply.

Complianz setting On the storefront
Header, message and button texts Shown as written, in the language they’re typed in.
Category names and descriptions Shown as written. A description switched off in Complianz stays hidden.
Categories (Accept - Deny - View Preferences, Accept - Deny - Save Preferences, Accept - Deny) The same buttons. Opt-out banners always offer preferences, so shoppers can switch categories off.
Position (Center, Bottom, Bottom left, Bottom right) Followed. Left and right swap in right-to-left languages such as Arabic.
Show as soft cookie wall The page is dimmed behind the banner until the shopper chooses.
Close button An X that closes the banner without a decision.
Legal document links on banner Links to your Cookie Policy and Privacy Policy, each left out if the storefront has no page for it.
Logo Your site logo or an uploaded logo. Complianz’s own “powered by” mark is not shown.
Manage consent display options The floating Manage consent tab: a sliver at the bottom edge that slides up on hover on a desktop, shown or hidden on phones as chosen.
Disable consent banner No banner, and your scripts load exactly as typed.
Consent banner expiration in days (Settings) How long the choice is kept.
Respect Do Not Track and Global Privacy Control? (Settings) Followed.
Records of Consent (premium) Each choice made on the storefront is recorded in Complianz.

Other languages. If you translate Complianz’s banner texts with Polylang or WPML string translations, each storefront language shows its translation. A language without one uses the storefront’s own translated copy.

Not used: colours, borders, font size, animation and custom CSS (the storefront’s design applies), A/B testing, the IAB TCF framework, consent per service, and a different region per visitor (one region per store).

StoreFrontSettingsHeader/Footer Scripts

Paste tags exactly as each service gives them, as described in Scripts and promo popup. While Complianz is active:

  • Known trackers wait automatically. A Meta Pixel, Hotjar or TikTok snippet is recognised and held until the shopper accepts its category. You don’t change the code.

  • Teach Complianz the rest. For a script it doesn’t recognise, add it under Complianz → Integrations → Script Center with its category, or mark it yourself in the box:

    <script type="text/plain" data-category="marketing">
    // runs only after the shopper accepts Marketing
    </script>

    The categories are preferences, statistics and marketing.

  • Unmarked scripts still run straight away, as they did before Complianz.

The Header/Footer Scripts tab with its notice: Complianz is active, the storefront shows its consent banner, and the trackers it recognises here wait for the shopper's consent. Below, the Head box holds a Google Tag Manager snippet with GTM-XXXXXXX.
The Scripts tab says when Complianz is in charge of consent.
The Scripts tab with a red warning: These boxes load Cookiebot while Complianz is active, so shoppers would see two consent banners. Remove it here and let Complianz handle consent. The Head box below holds a Google Tag Manager snippet followed by a Cookiebot script.
The warning shown when a box also loads another consent tool.

Complianz’s cookie policy contains a “manage your consent” section that its own script fills on a WordPress page. On the storefront, that section becomes the same category switches as the banner, and a change takes effect at once. The banner stays closed on that page, as Complianz does, because the switches are right there.

The Cookie Policy page's section 7.1 Manage your consent settings, showing Functional (Always active), Preferences, Statistics and Marketing as rows with checkboxes.
The switches in your Cookie Policy page's consent section.
  • A change in Complianz reaches the storefront like any other setting. Saving its settings, its banner or its wizard tells the storefront within about a minute. Each page picks the change up on its next visit and shows it from the one after, so reload a page twice to see it. The Cookies policy page is rebuilt with it.
  • Checkout and the order confirmation show no banner and run no tags, so no third-party code can reach the card fields. See Checkout and payments.
  • Withdrawing consent reloads the page. A script that has already run can’t be stopped, so the storefront reloads without it, as Complianz does.
  • Product videos. A YouTube video asks for Marketing consent before it plays, and offers to accept and play in one click. Vimeo videos play without asking: they’re embedded with Vimeo’s do-not-track setting.
  • Privacy-friendly statistics. If Complianz’s wizard concludes your statistics are anonymous, statistics run without asking in an opt-in region, as they do with Complianz on WordPress.
  • The storefront’s own essentials are never held back: sign-in with Google or Facebook, Cloudflare Turnstile, payments and the store map.
  • Without Complianz (or with its wizard unfinished, or its banner disabled), the storefront shows no banner, and your scripts load exactly as typed. A consent tool pasted into the Head box still works that way.
A product gallery showing a YouTube video's placeholder: This video plays from YouTube, which may set marketing cookies, and a button Accept Marketing Cookies And Play.
A YouTube product video, for a shopper who hasn't accepted Marketing.
Symptom Likely cause Fix
No banner at all The wizard hasn’t been finished, the banner is disabled, or your setup needs no banner (for example no cookies that need consent). Finish Complianz → Wizard and check Consent Banner. Wait 5 minutes.
No banner for you, but others see it You already chose, or your browser sends Global Privacy Control. Test in a private window, with privacy signals off.
A tag fires before consent Complianz didn’t recognise it. Add it to the Script Center, or mark it with type="text/plain" data-category="…".
Two cookie banners Another consent tool is pasted in Header/Footer Scripts. Remove it; the tab’s red warning names it.
The Cookie Policy page has no switches The Cookies policy isn’t Complianz’s page, or it’s the page for another region. Pick Complianz’s cookie policy for your current region under Static Pages.
Tag Manager tags don’t fire after Accept The tags wait for a trigger Complianz doesn’t send. Trigger them on the cmplz_event_statistics / cmplz_event_marketing events, or use Consent Mode.
Page views counted twice A GTM History Change trigger is also set up. Remove it; the storefront already reports each page change.
Storefront Playbook · Built by weLabsFeaturesFAQTalk to us