GTM Example: Google Ads User-provided Data Event
Advanced conditioning in Google Tag Manager
Mis à jour
Ce contenu vous a-t-il été utile ?
Advanced conditioning in Google Tag Manager
This guide explains how to condition the Google Ads User-provided Data Event tag in Google Tag Manager (GTM) using the variables and events injected by the Sirdata CMP.
The Sirdata CMP automatically pushes consent choices into the GTM dataLayer via the sirdataConsent event. The sirdataExtraPurposes and sirdataExtraVendors variables contain the consented Sirdata purposes and vendors respectively, in |ID| format (e.g.: |9|, |10|, |101|).
In GTM, create a variable of type Google Ads User-provided Data:
Variable type: Google Ads User-provided Data
Collection mode: Automatic collection or manually set the collection rules

Create a variable of type Data Layer Variable:
Data Layer Variable Name: sirdataExtraPurposes

Create a variable of type Data Layer Variable:
Data Layer Variable Name: sirdataExtraVendors

Create a trigger of type Custom Event:
Event name: sirdataConsent
Select the Some custom events option
Add the following conditions:
{{sirdataExtraPurposes}} contains |9| — Automatic collection of identifiers on devices
{{sirdataExtraPurposes}} contains |10| — Processing of identification data
{{sirdataExtraVendors}} contains |101| — Google Customer Match, Enhanced & Offline Conversions
All three conditions must be met (logical AND) for the trigger to fire.

Create a tag of type Google Ads User-provided Data Event:
Google Ads Account ID: enter your account ID
User-provided data: select the variable created in step 1
Trigger: select the trigger created in step 4

The tag will now only fire when the user has consented to Sirdata purposes 9 and 10 as well as the Google Customer Match partner (ID 101).
Mis à jour
Ce contenu vous a-t-il été utile ?
Ce contenu vous a-t-il été utile ?
