Logo of TAGGRS, written in blue and with a small favicon
HomeServer-side Tracking
Start for free
Introduction
Get started
Get started with TAGGRSSet up Google Tag ManagerAdd the GTM Data LayerConfigure GTM transformationsTest the setupDebuggingAnalytics dashboard
Migrate from Google CloudMigrate from hosting
Shortcuts
GTM Copy PasteReady-made templates
GA4 Server-side Tracking
Setup in GTMCreate GA4 Event TagsGA4 tag setup in server containerE-commerce events in GTM
Google Ads Server-side Tracking
Install Conversion LinkerSet up Conversion TrackingConfigure Enhanced ConversionsDeploy Remarketing Tags
Facebook Server-side Tracking
Set Meta PixelImprove your EMQ ScoreInstall Meta CAPIMeta Events DeduplicationMeta CAPI Gateway
LinkedIn Server-side Tracking
Install LinkedIn Insight TagSet up LinkedIn CAPILinkedIn Events Deduplication
TikTok Server-side Tracking
Set up TikTok PixelInstall TikTok Events APITikTok Events Deduplication
Pinterest Server-side Tracking
Set up Pinterest TagConfigure Pinterest Conversions APIPinterest Events Deduplication
Snapchat Server-side Tracking
Set up Snap PixelSnapchat Conversions APISnapchat Events Deduplication
TAGGRS Tracking Tags and Tools
Tracking TagsGoogle Service Account integrationsGTM LogsProfit TrackingData Enricher ToolWebhooks TesterEnhanced Tracking ScriptMulti Domain ToolClick ID RecoveryConsent Tool
Configurations
Billy Grace Server-side TrackingLeadPages Server-side TrackingPiwik PRO Server-side TrackingCDN Server-side TrackingShopify Server-side TrackingActiveCampaign Server-side TrackingKlaviyo Server-side Tracking
Server-side Tracking for e-commerce
Shopify Data LayerShopware Data LayerMagento Data LayerWooCommerce Data LayerPrestashop Data LayerLightspeed Data Layer
Consent Management server-side
Activate Consent ModeConfigure TAGGRS with Axeptio

Consent Mode activation

This guide explains how to implement Google Consent Mode V2 in your Google Tag Manager (GTM) web container and pass user consent signals to your server container for Server-side Tracking with TAGGRS. By aligning your consent management platform (CMP) with your server-side analytics, you ensure GDPR/CCPA compliance, minimize data loss, and maintain accurate analytics and marketing attribution.

What is Consent Mode V2?

Google Consent Mode V2 is an advanced version of Google's framework for managing user permissions on websites, especially in light of stricter privacy laws. This update is critical for website owners and marketers using Google's advertising and analytics products.
The rise of privacy laws and the demise of third-party cookies and mobile identifiers has led to the need for a more sophisticated approach to permission management. Google Consent Mode v2 comes in response to this changing digital landscape.

Consent Mode V2: main consent types

Compared to the previous, Consent Mode V2 introduces two additional consent types: ad_user_data and ad_personalization. Here is a breakdown of them all:

ad_storage

Controls advertising cookies.
‍
analytics_storage
Controls analytics cookies.
‍
ad_user_data
Governs sending user data to Google for ads (new in V2).
‍
ad_personalization
Governs personalized ads/remarketing (new in V2).

Why combine Consent Mode with Server-side Tracking?

Data Completeness

Server-side Tracking converts third-party cookies to first-party, enabling more robust data collection even as browser restrictions increase.

Compliance

Consent Mode ensures only user-approved data is processed, supporting GDPR and CCPA requirements.

Conversion Modeling

Google Ads can use non-personal signals (device type, country, conversion type) for conversion modeling, even without full cookie consent.

Ad Platform Optimization

Consent Mode V2 enables remarketing and conversion tracking without cookies, provided sufficient ad click volume.

Consent Mode V2 in Google Ads

Below we explain the core aspects and operation of Consent Mode V2 in Google Ads. One of the key features of Consent Mode V2 is the ability to send certain non-personal data to Google for conversion modeling. These cookie-free pings include non-identifiable signals such as:

• Device type
• Type of conversion
• Country
• Time of day
• Browser Type

This information is important for triggering Google Ads algorithm for conversion modeling.

You have a daily ad click threshold of 700 ad clicks over a 7 day period, per country and domain grouping. This is needed for the consent mode algorithm to start learning the learning period." (Source: Google Ads)

Once this threshold is met, cookie-free pings become active. This means that even if users do not consent to cookies, Google Ads still receives certain non-identifiable data. This data allows Google to create conversion models based on historical data.

Consent mode conversion modelling in Google Ads

In addition, Consent Mode V2 facilitates remarketing activities without the use of cookies. This is an important development in online advertising, as it allows advertisers to remain effective in their campaigns while respecting users' privacy.

Set Consent Mode on the client side

Enable Consent Overview in GTM web container

  1. Go to "Admin" → "Container Settings" in your GTM web container.
  2. Under "Additional Settings", enable "Consent Overview".
  3. Save the container.

Add Your CMP Tag

  1. In GTM, go to "Tags" → "New".
  2. Select your CMP from the Community Template Gallery.
  3. Enter your CMP ID.
  4. Set the trigger to "Initialization – All Pages".
  5. Save the tag.

Map Consent categories

Some CMPs map their categories to Consent Mode types:

• marketing → ad_storage, ad_user_data, ad_personalization
• statistics → analytics_storage
• preferences → functionality_storage, personalization_storage

Ensure your CMP passes consent states for each required category.

Create Consent state variables

Download and import the Consent State Template from the TAGGRS Template Gallery.
In GTM, go to Templates → New → Import and upload the Consent State Template.

Create a new template GTM web container
Create a new template GTM web container

For each consent type (e.g., ad_personalization), create a new variable:
‍
Variable type: Consent State
Consent Type: e.g., ad_personalization
‍
Repeat for all relevant types (ad_storage, analytics_storage, etc.).

Combine Consent states in an Event settings variable

Create a new variable: Google Tag – Event settings
Variable type: Google Tag: Event settings
Add all Consent State variables as event parameters.

Add Event settings variable to your Google tag

Edit your main Google Tag in GTM.
Under Event settings variable, select the variable you just created.
This ensures consent states are sent with every event to the server container.

Configure additional Consent for custom tags

For tags without built-in consent (e.g., Facebook Pixel), go to the tag’s Consent Settings.
Enable Require additional consent for tag to fire.
Select the appropriate consent types (e.g., ad_storage for ads, analytics_storage for analytics).

Set up triggers for Consent updates

Create a custom event trigger (e.g., cookie_consent_update) to fire tags when consent changes.
Assign this trigger to tags that need to respond dynamically to consent updates.

Set Consent Mode in GTM Server Container

We are going to manually add Consent Mode in server container. For this we use the different variables including the new V2 consent states. We will send these along with the Google Tag to the server container and in the server container we will use variables added to triggers to ensure that tags are sent at the correct consent level.
Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
Expert insight
For all Google products (Google Ads, GA4 Etc. ) you don't need to add any additional settings in the Server Container. So you only need to set up the Google products in the web container.
The permission banner collects user choices and sends them to the server via the Google tag and permission parameters in an HTTP request, then Google product tags adjust the data types and amounts sent based on user preferences.
How to configure the cookie banner in Google Ads server-side

For all other platforms such as Facebook, you can follow the following steps.

Create variables for each consent state

The data enters the server container from the web container by creating new variables. You need to do this for the consent states how they are sent to the server container.

We show this in an example for the consent state: ad_personalization.

1. Go to the server container and create a new variable.
2. Name it Consent State - Ad Personalization.
3. Choose Event Data as Variable Configuration.
4. Enter ad_personalization as Key Path because that is how it is sent from the web container to the server container.
5. Click Save.

create consent state variable Consent State - Ad Personalization - server container consent mode v2

Add Consent States Variables to required tag

You can now add Consent States variables to the tag you need. To use certain tags, it is important that marketing has been accepted by the user. If this is not the case, the tag should not be activated.

You can do this by adding the Consent State - Marketing to the appropriate Tag. Adding the newly created variable as a condition to the trigger will fire the Facebook Conversion API only when marketing cookies are accepted by the user. You can do that by following this tutorial:

This tells you that the Tag may be fired only when consent has been given for marketing cookies. This is consistent with enforcement of the Digital Markets Act (DMA).

You can then add these back to your tags. You do this again on the basis that if certain consent states are not checked then you are not allowed to fire the tags.

Logo of TAGGRS Server-side Tracking: a light blue circle with two blue angle brackets
So you need to create different GA4 Client Triggers for the different consent states.

To which tag to add which consent?

Now comes the tricky part. You have to determine for each event under which consent it falls. As mentioned before, in the Server Container for Google products you don't need to do any additional settings in the server container.

For example, a Purchase in GA4 falls under statistics because you use it for statistics and not for marketing purposes. So then you have to make sure that the purchase trigger is set so that the statistics cookies are accepted by the visitor.

Useful resources

Learn more about Google's Consent Mode
Find expert support
Previous
Lightspeed Server-side Tracking
Next
TAGGRS configuration with Axeptio
Copyright © 2025 TAGGRS. All right reserved.
TABLE OF CONTENTS
What is Consent Mode V2?Main consent types in Consent Mode V2Why combine Consent Mode with Server-side Tracking?Consent Mode in Google AdsConfiguration client sideConfiguration server sideUseful resources