HOT OFFER Free website audit + 30-minute growth call this month.
Blog / Tracking

GDPR-friendly tracking: GA4, Tag Manager and Consent Mode

How to set up Google Analytics 4 and Google Tag Manager with Consent Mode so your tracking respects GDPR, UK GDPR and cookie rules.

Related service: Google Ads management

If your website has visitors from the EU or UK, analytics and advertising tags usually need the visitor's consent before they set cookies or collect identifiers. Google also expects Consent Mode signals for traffic from the European Economic Area and the UK if you want to keep using features such as audiences and remarketing. This guide covers the technical setup. It is not legal advice.

What Consent Mode does

Consent Mode lets your tags change behavior based on what the visitor chose in your cookie banner. By default, analytics and ad storage are set to denied. When the visitor accepts, the tags update to granted and work normally.

Step-by-step setup

  1. Choose a cookie banner (consent management platform) that supports Google Consent Mode v2. Many offer a ready template for Google Tag Manager.
  2. In Tag Manager, set default consent to denied for ad_storage, analytics_storage, ad_user_data and ad_personalization, with a region setting if you only need it for the EEA and UK.
  3. Make the banner update those values when the visitor accepts or declines.
  4. Fire GA4, Google Ads and other tags only through Tag Manager, so consent rules apply to all of them.
  5. Test with Tag Assistant and your browser's network tab: before consent, tags must not set analytics or ad cookies.
  6. Review GA4 data retention and turn off any data collection you do not need.

What to expect in your reports

Not sure where your business stands? Get a free audit or message me on WhatsApp.

Visitors who decline cookies will not be tracked the usual way, so reported numbers can be lower than real traffic. Google may model some of the missing conversions when you meet its requirements, but treat modeled data as an estimate.

Do not forget the paperwork

  • A privacy policy that names the tools you use, why, and for how long
  • A banner with equal-weight accept and reject choices
  • A way for visitors to change their choice later
  • Contracts or data processing terms with your vendors where required

Rules differ by country and change over time. Ask a privacy lawyer to review your banner wording and policy. I can handle the technical setup and testing.

Checklist before you launch

  • All tags load through Tag Manager
  • Defaults are denied until consent
  • Tags tested before and after consent
  • Conversions still recorded for consenting visitors
  • Policy and banner reviewed by a professional

Ready to get more customers?

Send me your website and get a free quick audit.