Skip to content
bortolin.dev
Data

GA4 and Consent Mode: measuring your website while respecting privacy

Cookie banners, consent and data that “vanishes” from Analytics: how to set everything up properly and still know what’s working.

Antonio BortolinWeb designer and SEO consultant3 min read
Chart of page views in a web analytics dashboard

Ever since cookie banners arrived, lots of people complain that their Google Analytics numbers “don’t add up”: visits that seem to have vanished, conversions that drop. Often it’s not the website’s fault but the setup’s. Here’s how to measure properly while respecting privacy.

Why data “vanishes”

Under European rules, analytics and advertising tools that use cookies can only be switched on once the visitor has given consent. So people who decline cookies aren’t tracked in the same way. That’s as it should be, but with the wrong setup you risk losing data you could legitimately measure, or, the other way round, collecting data without consent.

Google’s Consent Mode is the system that passes the visitor’s cookie-banner choices on to Google Analytics and Google Ads. Depending on consent, Google’s services behave differently: with consent they work normally, without it they don’t use cookies for measurement or profiling.

Since March 2024 Google has required Consent Mode (version 2) from anyone using its advertising services with users in the European Economic Area who wants to keep using all its measurement and personalization features.

Basic or advanced?

  • Basic: Google’s tags don’t load until the visitor consents. Maximum caution, less data.
  • Advanced: the tags load straight away but, without consent, only send cookieless pings. Google uses these to estimate the missing conversions with statistical modeling.

Make the choice together with whoever handles legal and privacy matters for your business.

A proper setup

  1. A compliant cookie banner that makes accepting and declining equally easy.
  2. Consent Mode v2 connected to the banner.
  3. Google Tag Manager to manage all your tags in one place.
  4. Your key conversions (enquiries, quote requests, purchases) set up in GA4 and, if you advertise, in Google Ads.

What’s really worth measuring

More than visitor numbers, what matters are the actions that bring in business: forms submitted, calls from the website, WhatsApp clicks, purchases. Focus on a few clear metrics and look at them the same way, month after month.

How to check everything’s working

  • Test the banner: when you decline cookies, marketing tags must not use cookies.
  • Use Tag Manager’s preview mode to see what fires and when.
  • Check in GA4 that test conversions are being recorded.
  • Compare the leads recorded in Analytics with the ones you actually receive.

The bottom line

Privacy and measurement can coexist. With a proper banner, Consent Mode and a few well-configured conversions, you know what’s working in your marketing and you respect your visitors’ choices.

Antonio Bortolin

Written by

Antonio Bortolin

Web designer, developer and SEO consultant with over 15 years’ experience. I help businesses and professionals grow online, in Italy and abroad, and explain everything in plain English.

About me

Related service

Digital consulting

I check your tracking, Analytics and cookie consent. Fixed price, one point of contact and everything explained in plain English.

Questions about this topic?

Tell me about your project. The 25-minute discovery call is free, with no strings attached.

  • Free, no obligation
  • Reply by the next business day
  • You deal with me directly
Get a free quote
What do you need?