Integrating Sirdata Data into the GTM Layer
Mis à jour
To leverage the enriched data provided by Sirdata, it is essential to create variables in your GTM container. These variables will allow you to retrieve the specific information sent by Sirdata. The names of these variables are available in the Sirdata Server-Side documentation: the GTM Helper Layer page
Steps to create a variable:
Access your GTM container.
Navigate to the "Variables" section.

Click "New" to add a new variable.
Select the variable type "Request header"
Name the variable explicitly to make it easy to identify:
Examples of commonly used variables:
First-Id: Identifier assigned to the user by First-ID.

Consent for Analytics: Indicates whether the user has consented to the collection of analytics data.

Example: Analytics Consent
Suppose you want to fire or block tags based on the user's consent for analytics purposes.
Steps to follow:
Creating the consent variable:
Create a variable named "Gtm-Helper-Consent-Analytics" that retrieves the consent signal for audience measurement.
This variable can take the values true, false or undefined, depending on the user's consent.
Creating the consent-based trigger:
In the "Triggers" section of GTM, create a new trigger.

Define a condition so that the trigger fires only if "Gtm-Helper-Consent-Analytics" equals true.

Associating the trigger with the tag:
Assign this trigger to the relevant tags (for example, a Google Analytics tag) so that they only fire when the user has given consent for analytics.
Example: Enriching Facebook's external identifier (external_id) with First-Id
To improve tracking and ad targeting on Facebook, it is possible to enrich the data sent with a unique identifier provided by Sirdata.
Steps to follow:
Use the Sirdata variables to add information as an external identifier (external ID) in a Facebook tag.

This enriches the data sent to Facebook with Sirdata information.
Mis à jour