---
title: "Google Consent Mode v2 Best Practices"
url: "https://samarthanalytics.com/guides/google-consent-mode-v2-best-practices"
published: "2026-04-23"
updated: "2026-04-24"
category: "GA4 Implementation"
tags: "consent-mode, gdpr, dma, ga4, gtm, privacy, cmp"
author: "Samarth Analytics"
---

# Google Consent Mode v2 Best Practices

> Implementing Consent Mode v2 is mandatory for DMA compliance and involves capturing new ad_user_data and ad_personalization signals to sustain EEA remarketing. A "default denied" script must fire before the GTM container to prevent race conditions and ensure that no cookies are set before explicit user consent. Advanced Mode offers the best balance for growth-stage companies by using cookieless pings to enable behavioral modeling and recover lost conversion data.

- Implement Google Consent Mode v2 immediately to comply with the Digital Markets Act (DMA) and maintain the ability to run personalized remarketing in the EEA.
  - Understand the technical distinction between `ad_user_data` and `ad_personalization` to ensure your signals match your actual privacy policy.
  - Choose between Basic and Advanced implementation based on your organization's risk tolerance for cookieless pings versus your need for conversion modeling.
  - Prioritize the "default denied" state in your site's header to avoid the common race condition where tags fire before consent is established.
  - Use the GTM Consent Overview and DebugView to verify that consent signals are correctly forwarding to both GA4 and server-side destinations.

## Why Consent Mode v2 became mandatory (and what changed from v1)
The transition from the original Consent Mode to version 2 was not a voluntary upgrade. It was a reactive shift driven by the European Union's Digital Markets Act (DMA). For growth-stage companies and mid-market players operating in the EEA, Google Consent Mode v2 implementation is now a hard requirement for maintaining advertising functionality. Specifically, the DMA classifies Google as a "gatekeeper," which forces them to prove that the data they use for advertising is collected with explicit user consent.

While version 1 was primarily about adjusting the behavior of tags based on `ad_storage` and `analytics_storage`, version 2 introduces two new critical parameters: `ad_user_data` and `ad_personalization`. These signals tell Google whether it has permission to send user data to its advertising services and whether that data can be used for remarketing. If you fail to send these signals, Google simply stops populating your remarketing lists and limits your ability to track conversions for users in the EEA. We have seen accounts experience a total blackout of audience building within days of failing to update their CMP (Consent Management Platform) settings to support these new parameters.

## Basic vs Advanced: which mode should you actually run?
The debate between Basic and Advanced Consent Mode is where most technical marketers spend their time. The choice significantly impacts your data quality and your compliance posture.

### Advanced Consent Mode

In Advanced Mode, Google tags load before the user even interacts with the consent banner. If the user denies consent, the tags do not set cookies, but they still send "cookieless pings" to Google. These pings contain non-identifying information like timestamps, user-agent, and referral data. Google then uses these pings to bridge the gap in your data using behavioral modeling and modeled conversions Consent Mode v2. This is the implementation path for teams that want to recover the highest percentage of their "lost" data.

### Basic Consent Mode

In Basic Mode, tags are hard-blocked until the user clicks "Accept" on your banner. If a user denies consent, no data is sent to Google whatsoever. No pings, no page views, nothing. While this is the "safest" from a conservative legal standpoint, it leaves you with a complete blind spot for opted-out users. You will see a significant drop in your reported session counts and conversion volume because there is no underlying data for Google to model.

> Tip: We recommend Advanced Mode for most B2C and paid-heavy clients because the modeled conversion recovery is usually worth more than the compliance-review overhead of cookieless pings. However, we suggest Basic Mode for regulated industries such as health, finance, or brands selling kids' products where even anonymous pings are often viewed as a review risk by internal legal teams.

## The four consent signals you must send correctly
To be fully compliant and functional, your GTM container or `gtag.js` implementation must now manage four distinct signals. Getting the GA4 Consent Mode setup right requires a precise mapping of these variables.

  - `analytics_storage`: Controls whether cookies can be used for analytics. When denied, GA4 relies on cookieless pings (in Advanced Mode).
  - `ad_storage`: Controls whether cookies can be used for advertising. This is the legacy parameter from v1.
  - `ad_user_data`: This is a v2 specific signal. It indicates if the user consents to their personal data being sent to Google for advertising purposes. This is the backbone of DMA compliance.
  - `ad_personalization`: This is the second v2 specific signal. it indicates if the user consents to being included in remarketing lists and personalized ad targeting.

We have seen many implementations where `ad_user_data` is set to `granted` but `ad_personalization` is `denied`. In this scenario, you can still track conversions for attribution, but you cannot retarget that specific user with a display ad later. You must ensure your CMP is configured to map user choices to these four specific keys accurately.

## Setting the default "denied" state before GTM loads
The most frequent technical failure we audit is a "race condition." This happens when the GTM container loads and fires a `page_view` tag before the CMP has had a chance to tell GTM what the consent status is. If GTM doesn't see a default state, it assumes an implicit "granted" state for a split second, fires the tag, and sets a cookie. This is a direct violation of GDPR and the DMA.

To prevent this, you must hard-code a "default denied" state in the `<head>` of your website, placed physically above the GTM container snippet. This ensures that the very first thing GTM sees is a restricted state. Once the user makes a choice, the CMP will fire an "update" command to flip those signals to "granted."

```js
// 1. Default consent state: This MUST fire before the GTM container loads.
// It sets a strict 'denied' baseline for all parameters.
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}

gtag('consent', 'default', {
  'ad_storage': 'denied',
  'ad_user_data': 'denied',
  'ad_personalization': 'denied',
  'analytics_storage': 'denied',
  'wait_for_update': 500 // Gives the CMP 500ms to load before tags proceed
});

// 2. Update call example: This is triggered by your CMP (e.g., OneTrust) 
// after the user clicks the 'Accept' button.
function handleConsentAccept() {
  gtag('consent', 'update', {
    'ad_storage': 'granted',
    'ad_user_data': 'granted',
    'ad_personalization': 'granted',
    'analytics_storage': 'granted'
  });
}
```

The physical order in your HTML is non-negotiable. If you use a plugin to inject GTM, verify that it is not placing your consent script after the GTM block.

```html
<head>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('consent', 'default', {
      'ad_storage': 'denied',
      'ad_user_data': 'denied',
      'ad_personalization': 'denied',
      'analytics_storage': 'denied',
      'wait_for_update': 500
    });
  </script>

  <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  })(window,document,'script','dataLayer','GTM-XXXXXX');</script>
</head>
```

> Warning: The most common failure mode we see is setting the default state AFTER GTM has already loaded the page. When that happens, the first `page_view` fires with an implicit "granted" state, which is a direct compliance violation under GDPR and the DMA and can trigger account-level enforcement from Google.

## Wiring your CMP (OneTrust, Cookiebot, Usercentrics) into GTM
Most enterprise-grade CMPs like OneTrust, Cookiebot, or Usercentrics have built-in "Consent Mode" toggles. These toggles automate the `gtag('consent', 'update', ...)` calls. However, you cannot simply flip a switch in OneTrust and assume everything is working. You need to ensure the CMP integration GTM Google logic is sound.

First, we recommend using the official GTM Gallery Templates for your chosen CMP. These templates are designed to handle the `dataLayer` pushes correctly and integrate with GTM's native "Consent Overview" feature. Once the template is installed, you must map the CMP's internal categories (e.g., "Performance Cookies," "Targeting Cookies") to Google's four signals.

For example, a "Targeting" category in Cookiebot should trigger an update for both `ad_storage` and `ad_personalization`. A "Statistics" category should trigger an update for `analytics_storage`. We often see teams forget to map the new `ad_user_data` parameter, leaving their Google Ads account in a perpetual state of "missing signals" despite having a working banner.

## Modeled conversions: what Google actually fills in for opted-out users
One of the biggest questions we get from growth leads is: "If I use Advanced Mode, how do I know the data is real?" The modeled conversions Consent Mode v2 logic is a mathematical estimation. When a user denies consent in Advanced Mode, Google sends a ping that contains the conversion event (like a purchase) but no user ID.

Google then looks at the conversion rate of users who *did* give consent and have similar characteristics (device type, country, time of day, browser). It applies that conversion rate to the volume of cookieless pings to estimate the true number of conversions. In GA4, these are not "fake" numbers. They are integrated directly into your reports. You will typically see a "data quality" icon in the UI indicating that modeling is active. In our experience, for a B2C retailer with a 30% opt-out rate, modeling can recover 15% to 20% of the lost conversion volume that would otherwise be invisible.

## Server-side consent: forwarding signals to sGTM and Meta CAPI
If you are running a server-side GTM (sGTM) setup, the complexity increases. Your consent signal forwarding server-side GTM must be explicit. When the browser sends a request to your server-side container, it includes the `gcs` (Google Consent Status) and `gcd` (Google Consent Default) parameters in the URL.

Your server-side tags must be configured to respect these parameters. If you are using the Meta Conversions API (CAPI) through sGTM, you have a secondary responsibility. You must translate Google's consent signals into Meta's specific parameters, such as `consent_category`. We've seen several cases where a user denies consent on the frontend, but the server-side GTM container ignores the signal and sends a full PII-laden purchase event to Meta anyway. This is a massive compliance hole. You must use the "Consent" tab inside your sGTM tags to ensure that no third-party API calls are made unless the proper keys are present in the incoming request.

## Validating your setup with GTM Consent Overview and DebugView
Verification is the final, and most neglected, step. You cannot rely on the "it looks okay" method. You must use two specific tools to prove compliance.

### GTM Consent Overview

Inside GTM, click the shield icon in the top right of the "Tags" screen. This opens the Consent Overview. It will show you every tag in your container and whether it has "Built-in Consent Checks" or requires "Additional Consent Checks." If you see a GA4 tag that doesn't have consent settings configured, it is a red flag. Every tag should be explicitly mapped to a consent requirement.

### GA4 DebugView and Preview Mode

Launch GTM Preview mode and click on the "Consent" tab in the summary pane. You should see "Default" firing first with all `denied` states, followed by an "Update" event once you interact with your banner. Then, go to the GA4 DebugView. Look at the incoming events. Each event should have a parameter called `page_location` that includes the `&gcs=` string.

  - `G100`: Denied both ad and analytics storage.
  - `G111`: Granted both ad and analytics storage.
  - `G101`: Denied ads, granted analytics.

If you don't see these strings, your signals aren't reaching Google.

## Common mistakes we see
  - Firing the GTM container via a hard-coded script while also using a CMP's auto-injection feature, resulting in duplicate tags with conflicting consent states.
  - Forgetting to map the `ad_user_data` signal, which leads to Google Ads reporting "limited functionality" even when a banner is present.
  - Setting the `wait_for_update` value too low. If your CMP is slow to load, tags may fire before the update signal arrives, resulting in a loss of data for that first page view.
  - Relying on "URL Passthrough" without having a proper GDPR Google Ads consent strategy, which can result in PII being leaked in URL parameters.
  - Using "Additional Consent Checks" in GTM for tags that already have "Built-in Consent," which can cause tags to never fire even after consent is granted.
  - Neglecting the "Redact Ad Data" setting in GTM, which is a necessary step for organizations following strict privacy-by-design principles in Advanced Mode.

## Implementation checklist
  - [ ] Audit your current CMP to ensure it supports the `ad_user_data` and `ad_personalization` parameters.
  - [ ] Place the "default denied" gtag script above the GTM container in your site's `<head>`.
  - [ ] Enable the "Consent Overview" feature in Google Tag Manager.
  - [ ] Use a GTM template for your CMP (OneTrust, Cookiebot, etc.) to handle the update calls.
  - [ ] Map CMP categories to all four Google consent signals (ad, analytics, user\_data, personalization).
  - [ ] Verify that Advanced Mode is sending cookieless pings when consent is denied (look for `gcs` parameters).
  - [ ] Test the "race condition" by checking if any cookies are set *before* the banner is clicked.
  - [ ] Check GA4 DebugView to ensure `G1xx` signals are being received for every event.
  - [ ] Confirm that server-side tags (like Meta CAPI) are conditioned on the incoming consent status.
  - [ ] Monitor Google Ads for any "Consent Mode" alerts in the diagnostic tab over a 48-hour period.

## How Samarth Analytics helps
Navigating the intersection of privacy law and technical tracking is a constant challenge for growth-stage companies. A small error in your Consent Mode implementation can lead to significant revenue loss through broken remarketing or legal liability through non-compliance. At Samarth, we bridge the gap between your legal team's requirements and your marketing team's need for data. We specialize in deep CMP-to-GTM integrations that preserve as much data as possible through modeled conversions while ensuring you stay fully compliant with the DMA and GDPR. Whether you need a full audit of your current setup or a ground-up server-side implementation, we provide the technical expertise to keep your tracking durable. Start with a [free audit](https://samarthanalytics.com/free-audit) of your consent signals or [contact us](https://samarthanalytics.com/contact) to discuss a custom measurement strategy.

---

Published by [Samarth Analytics](https://samarthanalytics.com) (admin@samarthanalytics.com). All guides: https://samarthanalytics.com/guides.
