Google Consent Mode v2 and the Meta Pixel on WooCommerce: a plain guide

If you sell to the UK or EU, your cookie banner decides what GA4 and Meta are allowed to see. Set it up wrong and you either break the law or lose most of your conversion data. This guide explains Google Consent Mode v2, how Meta handles consent, how cookie plugins like Complianz, CookieYes and Cookiebot fit in, and what server-side tracking can and can't do here.

This is practical guidance, not legal advice. Your obligations depend on where your customers are. Check with a privacy professional if you're unsure.

What Consent Mode v2 is

Consent Mode is how your cookie banner tells Google tags what the visitor agreed to. Version 2 uses four signals:

  • analytics_storage: may GA4 set analytics cookies?
  • ad_storage: may Google Ads set advertising cookies?
  • ad_user_data: may user data be sent to Google for advertising?
  • ad_personalization: may the data be used for remarketing and personalised ads?

Since March 2024, Google requires the two newer signals for traffic from the European Economic Area if you want to keep audiences and conversion measurement in Google Ads.

Basic or advanced: which one to choose

Basic mode

Google tags don't load at all until the visitor accepts. Nothing is sent for visitors who decline or ignore the banner. It's the simplest and most conservative option, but GA4 loses those visitors completely.

Advanced mode

Google tags load straight away with all signals set to denied. They send cookieless pings without identifiers, and when the visitor accepts, normal tracking starts. GA4 uses the pings to model the visitors it can't see, so reports are closer to reality. It's more data, but it is still a data transfer, so check that it fits your privacy policy.

Meta has no Consent Mode

The Meta Pixel has no equivalent of Google's modes. The standard approach is to hold the Pixel until the visitor gives marketing consent, either by not loading it or by calling fbq('consent', 'revoke') before init and fbq('consent', 'grant') after the visitor accepts. Without marketing consent, no Meta events should be sent.

How cookie plugins connect to your tracking

Complianz, CookieYes and Cookiebot can all send the Google Consent Mode signals. For other tools on a WordPress site, the shared standard is the WP Consent API: the cookie plugin registers each visitor's choice there, and tracking plugins read it. Three things to check:

  1. Your cookie plugin supports the WP Consent API, and the integration is switched on.
  2. Your tracking plugin reads consent from it, or from the cookie plugin directly, and doesn't load the Pixel before consent.
  3. Only one tool sets the Google Consent Mode defaults. Two tools setting different defaults is a common cause of GA4 dropping data.

Showing the banner only where it's needed

Most cookie plugins can show an opt-in banner only to visitors from the UK and EU, and treat other regions as opt-out. That keeps data complete for US and other visitors while respecting stricter rules in Europe. Test it with a VPN from both regions.

What server-side tracking changes, and what it doesn't

Server-side tracking sends the purchase from your server, so ad blockers and closed tabs can't stop it. It does not change the consent rules. A visitor who declined marketing cookies hasn't consented because the data travels a different way. A well-built setup lets you choose:

  • Respect consent on the server too: the server sends Meta events only for buyers who gave marketing consent, and GA4 events only with statistics consent. This is the safe default for UK and EU stores.
  • Always send: for stores outside those rules, or where your legal basis allows it. Decide this per store, with your privacy policy in mind.

How to check your setup

  1. Open your store in a private window from a UK or EU location and decline cookies.
  2. In the browser's network tab, check that no request goes to facebook.com/tr. With GA4 in advanced mode, collect requests should carry gcs=G100 (nothing granted).
  3. Accept cookies and reload. The Pixel should load, and GA4 requests should show gcs=G111.
  4. Place a test order in both states and check what your server sent on the order.

Consent handled on both sides

UnifiedTrackingHub reads consent from the WP Consent API, Complianz, CookieYes, Cookiebot or your own banner. Meta waits for marketing consent, GA4 for statistics consent, with Google Consent Mode v2 advanced as an option. Or switch consent off for stores that don't need it. Plans from $79 a year.

See pricing Read the setup guide

See pricing – from $79 a year