Tag Management with Google Tag Manager
Sirdata's intelligent CMP is developped to detect the existence of a dataLayer dedicated to Google Tag Manager (GTM) or to create one to inject into GTM the signals of choice (non-choice / consent / refusal / opposition of the user ).
The CMP injects a "consent" signal ("sirdataConsent") on page load if the user accepted cookies (or resides outside Europe), and/or "non-consent" ("sirdataNoConsent") if the user has refused cookies. If the user has not yet made a choice yet, an intermediary event "SirdataNoChoice" is triggered.
The CMP will also inject into GTM all the environment and choice information to enable the granularity of the legal bases to be implemented by purpose.
The basic strategy for quickly blocking tags (beacons) using cookies therefore consists of making the tags conditional on consent ("event"), while the advanced strategy consists of using the information transmitted ("variables") to verify the validity of the consent for a particular partner for example.
In your GTM account, go to the "Triggers" section of your workspace:
Click on "New", then set up a first custom event "Sirdata Consent" by selecting a trigger type "custom event" and using the event name "sirdataConsent" (without initial capital or space), as follows:
Save and repeat the operation to set up a second custom event named "Sirdata No Consent", selecting a trigger type "custom event" and using the event name "sirdataNoConsent" (without initial capitals or spaces), as follows :
You now have 2 events at your disposal, which will allow the CMP to automatically manage your tags.
Now go to the "Tags" section where you manage your tags:
Edit an existing tag or create a new one, using the tag of your choice and using the second section ("Trigger") to trigger the tag only in case of consent (cf. event "Sirdata Consent "created in step 1) or on the contrary in case of non-consent if for example you want to trigger a tag without cookie in the absence of consent.
It is of course possible to use this trigger in addition to other triggers or conditions external to the CMP.
Your tag is now conditioned and will no longer be triggered without prior consent, for example. This is the major step, and we advise you to repeat this operation for all the tags that require it.
Then you can use the information sent by the CMP and create granular parameters to go further in the control.
To use them, go to the "Variables" section:
In the "User-defined variables" section click on "new" and choose the type of variable "Data layer variable":
Then use one of the parameters in the table above as variable name.
Example for the sirdataTcString parameter
Save and go to the "event" or "tag" section to use these settings.
You can create complex event triggers based on the sirdataConsent and sirdataNoConsent events sent to GTM, by coupling them with these variables created in the previous point.
For example, to condition a personalized advertising tag on the prior obtaining of consent for purposes 1, 3 and 4 and the partner Google (id 755), as well as a legitimate interest established for purpose 2 and this same partner :
Then use these triggers to trigger the specific tags for which they were created.
To transmit information in your tags, such as the TC String, for example, use the names of the variables you have created in your tags, surrounded by double brackets.
For example if you have created a sirdataTcString variable, you can use it in a tag by injecting it like this: