Consent & privacy · European flooring manufacturer · Magento 2

Zero pre-consent tracking after a Magento redesign: 14 → 0 tags firing before consent

A redesign broke the store’s consent setup, so tracking could load without a valid opt-in. I rebuilt it so that no analytics, advertising or session-recording tag loads until the visitor opts in, and validated it with the CMP vendor’s team and the client’s data-protection team.

14 → 0
Tags firing before consent
14 → 14
Tags firing after opt-in: no loss
  • iubenda
  • Consent Mode v2
  • Google Tag Manager
  • Magento 2

The challenge

  • A European premium flooring manufacturer selling to EU customers through a Magento 2 store, with 14 third-party tags: Google, Meta, Pinterest, LinkedIn and Microsoft ad platforms, programmatic partners, session-recording tools, a live chat and an email platform.
  • The redesign moved the store to a new theme. The consent banner and the script blocking tied to the old templates did not carry over, so tracking could load without a valid opt-in.
  • Under GDPR that is a compliance risk, and from March 2024 Google Ads also required Consent Mode v2 signals for EU traffic.

What I did

  • Blocked the whole tag manager container until consent, rather than relying on per-tag settings inside it.
  • Configured the iubenda Cookie Solution with per-purpose consent (functionality, experience, measurement, marketing): “Reject all” and “Accept all” carry equal weight, “Customise” opens purpose toggles, and closing the banner counts as a rejection.
  • Set the load order in the new theme: the CMP configuration first, then auto-blocking, then the consent engine, then the tag manager, whose snippet and ecommerce data-layer pushes stay inactive until the visitor opts in.
  • Set up Google Consent Mode v2: all seven signals default to denied, with URL passthrough and ad data redaction on, and an update is pushed when the visitor accepts.
  • Gated site features on consent: the live chat appears without a page reload once a non-essential purpose is granted, and the email platform loads only with consent. The platform’s own cookie notice is suppressed, so visitors see one prompt.
  • Tested every journey (deny, accept, return visit) and reviewed the setup with the CMP vendor’s team and the client’s data-protection team before sign-off.

Results

  • Tags firing before consent: 14 → 0 (100% fewer). On denial, no analytics, advertising or recording requests and no tracking cookies; only essential store cookies are set.
  • Consent banners shown to a visitor: 2 → 1.
  • Consent Mode v2 signals sent to Google: 0 → 7.
  • Tags firing after opt-in: 14 → 14, nothing lost once the visitor accepts. Stored consent is respected on return visits, with no second prompt.

See what your own site sends before and after a visitor makes a cookie choice. Check your consent set-up with the free audit

Verified by testing the deny, accept and return-visit journeys before release.

More case studies
All case studies
Free consultation

Numbers that don't agree?

Request a free 30-minute video call. No pitch deck, no obligation.

Request a free consultation