GA4 and consent mode
Measurement and consent

GA4 and
consent mode

Analytics that measures what a visitor has consented to.

A GA4 and consent mode implementation for industrial B2B websites: consent categories mapped to the signals Google Analytics expects, tags gated so they wait for a choice, conversion events that reflect how technical buyers behave, and data-layer ownership that stays with you.

The behaviour is then verified in the browser under each consent state rather than accepted from a configuration screen. What consent is required in your markets is a legal determination your data protection officer or legal counsel makes; we implement to that definition.

The technology
What is included

What a GA4 and consent
mode implementation involves

What it involves

A default GA4 installation collects data regardless of consent unless Consent Mode is specifically and correctly configured. On an industrial site selling into the EU, where a large share of traffic comes from buyers in scope of European data protection rules, that gap means measuring data the organisation may have had no basis to collect.

Getting it right involves four things: a mapping between your consent categories and the signals GA4 reads, a default state applied before any choice is made, tag behaviour that changes when a visitor declines, and evidence that it does. Scope depends on where your visitors are and what your organisation processes, which your legal counsel confirms.

What we deliver

GA4 configured with Consent Mode gating collection, verification that a declined choice stops the corresponding data collection, event and conversion tracking scoped to what remains measurable, and documentation for your data protection officer describing how the setup behaves under each state.

The measurement plan is built around industrial B2B behaviour rather than ecommerce defaults: datasheet and safety data sheet downloads, CAD file requests, product finder and filter usage, quote and enquiry submissions, distributor locator searches, and the return visits that precede a specification decision. See analytics and tracking.

The signals Consent Mode uses

Consent Mode works on named signals rather than a single on or off switch. Analytics storage governs GA4 cookies, ad storage governs advertising cookies, and two further signals cover the use of user data and personalisation for advertising. Each has to be mapped to a category in your consent banner, set to a default before the visitor chooses, and updated when they do.

Region-scoped defaults let you apply a denied default across the EEA and UK while another region follows a different rule, which matters for manufacturers selling globally from one platform. Where a tag manager sits in front of the tags, the same signals gate the rest of the marketing stack rather than GA4 alone.

Configuration beyond the consent banner

Several GA4 settings affect data handling independently of consent and are frequently left at defaults: data retention period, Google Signals, granular location and device data, and the account-level data sharing options. We review each against what your organisation has decided to allow and document the resulting configuration.

Server-side tagging is worth considering where you want more control over what leaves the browser and what is forwarded onward. It changes the operational picture, since it introduces infrastructure your team or ours has to run, so we scope it as a decision rather than a default. Related reading: does industrial B2B website data have to stay in the EU.

Implemented to your data protection definition

We implement the technical configuration to whatever your data protection officer or legal counsel defines as required, keeping the legal judgment with the people qualified to make it while we get GA4 and Consent Mode to reflect that definition correctly.

We do not advise on whether a given setup satisfies GDPR, the ePrivacy rules or a national regulator, and no implementation should be treated as a compliance guarantee. What we provide is an accurate technical record of what the site collects under each consent state, which is what your legal team needs to make that assessment.

case studies

Clients who trust us

Industrial and technical B2B companies we build and maintain platforms for.
Industrial B2B digital platforms

A decade of digital work
for industrial and technical B2B

Code Industrial is the industrial B2B practice of Code Barcelona, an agency building corporate websites and digital platforms since 2015. The same strategy, design and engineering team works on every industrial project, from the first scoping session through to life after launch.

19
industrial sectors we serve
1.550
technical documents migrated in one project, permissions and URLs intact
+10
years of digital delivery for industrial B2B
GA4 by measurement need
Who needs it

What GA4 has to measure
differently by site type

What is worth measuring, and what remains measurable under consent, differs by site. GA4 and consent mode work starts there.

Implementation process
Four stages

How we implement GA4
and consent mode

Four stages. GA4 and consent mode is verified technically, not declared in a policy.

CONSENT MAPPING
01
01

What consent status controls what data

We map which data category is gated by which consent choice, since Consent Mode uses specific signal types that need correct mapping to your consent categories.

What we map

Your existing consent categories mapped against the specific signals GA4 reads: analytics storage, ad storage, ad user data and ad personalisation. We define what is collected in each state, granted or denied, and which regions receive which default, before any configuration happens.

Result

A documented mapping between what your consent banner tells the visitor and what GA4 does behind it, so the two are not quietly out of step and your data protection officer can review the intent before it is built.

CONFIGURATION
02
02

Consent mode correctly implemented

We configure Consent Mode so a declined choice restricts data collection, rather than a superficial implementation that keeps collecting regardless.

What we configure

Consent signals configured to match the agreed mapping, the default state set correctly and loaded before any tag fires, and update calls that change collection when a visitor makes or revises a choice. Account-level settings are reviewed at the same time: data retention, Google Signals, granular location data and data sharing options.

Result

An implementation that reflects the consent choice made, verified rather than taken on faith, which is the difference between a defensible setup and one that looks correct in the banner alone.

MEASUREMENT PLAN
03
03

What remains measurable, and how it is used

We build event and conversion tracking appropriate to what remains measurable under real consent rates, avoiding reporting that implies more completeness than the data holds.

What we build

Event and conversion tracking scoped to industrial B2B behaviour: datasheet and certificate downloads, product finder use, quote requests, distributor locator searches and contact submissions. Modelled conversions and cookieless measurement are configured where available, and documentation records what is and is not captured in each consent state.

Result

A measurement setup that is clear about its own coverage, so decisions account for what a declined-consent session is not showing rather than treating partial data as the whole picture.

VERIFICATION
04
04

Confirmed to gate correctly

We test that declining consent stops the relevant data collection, rather than assuming the configuration works as intended.

What we verify

Consent-gated behaviour tested in the browser under each state, watching the network requests and cookies directly to confirm collection stops when it should. Behaviour is checked on a fresh session, after granting, after declining and after a visitor changes their mind. Documentation is then prepared for your data protection officer evidencing how the setup behaves.

Result

Evidence rather than an assumption that the implementation does what it was specified to do, which is what your data protection officer needs on file if the setup is ever questioned.

GA4 and consent mode questions

What comes up when implementing consent-respecting analytics on an industrial B2B site.

Does GA4 respect consent by default?

No. GA4 collects data regardless of consent unless Consent Mode is specifically and correctly configured. A default installation fires tracking tags before a visitor makes any cookie choice, which is the most common gap we find when auditing industrial sites.

We configure Consent Mode so tags wait for the relevant signal, set the default state to denied where that is what your organisation has decided, and verify the behaviour in the browser rather than assuming the setup is correct.

What consent rate should an industrial B2B site expect?

It varies widely by market, banner design and audience. Professional buyers on industrial sites often opt in at a higher rate than consumer audiences, while traffic from corporate networks with strict browser policies or tracking protection can reduce measurable sessions further than the banner alone suggests.

We treat the resulting rate as a design constraint rather than a problem to solve, building Consent Mode modelled conversions and cookieless measurement into the setup so reporting stays useful at whatever opt-in level your markets produce.

How does this relate to our wider cookie and consent implementation?

GA4 configuration is one part of a wider implementation rather than a standalone setup. It has to use the same consent categories and banner logic as the rest of the site, including advertising tags, chat widgets, embedded video and any marketing automation script.

A common failure is a banner that blocks GA4 correctly while a third-party embed drops cookies before any choice is made. We audit the full tag inventory rather than the analytics tag alone. See analytics and tracking.

Can you advise on our legal consent requirements?

No. Defining what consent is required, in which markets and on what legal basis sits with your data protection officer and legal counsel. Requirements differ between EU member states, the UK and non-European markets, and they change as guidance and case law develop.

We implement the technical configuration, including cookie categories, banner behaviour and tag gating, to whatever standard they define, flag technical limitations we find, and document what the site does under each state so they can assess it. We do not present any implementation as a compliance guarantee.

What is the difference between basic and advanced Consent Mode?

In the basic form, tags are blocked entirely until consent is granted, so a declined session sends no data at all. In the advanced form, tags load in a restricted state and send cookieless pings that carry no identifiers, which lets Google model the behaviour of declined sessions in aggregate.

Advanced measurement gives more complete reporting; the basic form sends less. Which is appropriate is a decision for your data protection officer, and we implement whichever they specify rather than defaulting to the option that reports better.

Should we use server-side tagging?

It is worth considering where you want control over what leaves the browser, what is enriched before being forwarded, and which third parties receive anything at all. It also improves resilience against client-side blocking, which affects industrial audiences on managed corporate networks.

The trade-off is operational: a server-side container is infrastructure that has to be hosted, monitored and paid for, and it does not remove the need for a consent signal. We scope it as a deliberate decision rather than a default, and note that it does not by itself change what your organisation is permitted to collect.

Can quote requests be attributed without sending personal data to GA4?

Yes, and this is the pattern we usually recommend. GA4 receives the event that a quote request was submitted along with non-identifying context such as the product category or page, while the name, company and email go only to the CRM. A pseudonymous reference can link the two inside your own systems for pipeline reporting.

Sending names, email addresses or free-text enquiry content into analytics creates a data protection problem and breaches Google terms. We check existing setups for it, since it appears often in form integrations built without review.

How do we keep GA4 consistent across several country sites?

Through one measurement specification applied across the estate: shared event names and parameters, a single tag manager container structure, one consent platform with region-scoped defaults, and a documented configuration each market inherits rather than reinvents.

Without that, country sites end up with different event names for the same action and reporting cannot be aggregated. On multi-market platforms we set this up alongside the wider architecture. See WordPress Multisite and international SEO.

Related technology we work with

Other technology we work with

GA4 and consent mode connects closely with these related technology pages.

GA4 and consent mode

Review your GA4
and consent mode setup

Analytics you are not confident reflects visitor consent. Tell us what you have and we will set out how we would approach GA4 and consent mode.

contact us
Contact Form

Tell us
about your project

Tell us about your organization's context and the planned scope of the project.
Code Industrial, as the data controller, will process your data in order to respond to the query and/or request you submit through this contact form. Privacy Policy.
Our site uses cookies to collect information about your device and browsing activity. We use this data to improve the site, ensure security and deliver personalized content. You can manage your cookie preferences by clicking here.
Basic cookie information
This website uses cookies and/or similar technologies that store and retrieve information when you browse. In general, these technologies can serve very different purposes, such as, for example, recognizing you as a user, obtaining information about your browsing habits or personalizing the way in which the content is displayed. The specific uses we make of these technologies are described below. By default, all cookies are disabled, except for technical ones, which are necessary for the website to function. If you wish to obtain more information or exercise your data protection rights, you can consult our Cookie Policy".
Technical cookies needed Always active
Technical cookies are strictly necessary for our website to work and for you to navigate through it. These types of cookies are those that, for example, allow us to identify you, give you access to certain restricted parts of the page if necessary, or remember different options or services already selected by you, such as your privacy preferences. Therefore, they are activated by default, your authorization is not necessary.Through the configuration of your browser, you can block or alert the presence of this type of cookies, although such blocking will affect the proper functioning of the different functionalities of our website.
Analytics cookies
Analytics cookies are used to analyse website behaviour anonymously. They help us measure activity and improve the website.
Title
Popupcontent
Contact us
Code Industrial, as the data controller, will process your data in order to respond to the query and/or request you submit through this contact form. Privacy Policy.
Aceptar