Our cookie script supports integrated consent management via Tag Manager, without the need to add additional JavaScript in Tag Manager to make it work.
Consent Management Event:
The event used is called cm_consent_manager
and it adds the following to the data layer:
cm_consent_level
: Can have the valuesall
,none
, orsome
.cm_accepted_consent_categories
: Contains a comma-separated list of accepted consent categories, for example"necessary, marketing"
or"necessary, preferences, marketing, statistics"
.
To ease implementation in Tag Manager, a basic setup as shown below can be used. This will make the setup smoother.
Example of trigger setup
Example of tag configuration
(the event name is up to you)
Example of the event when fired (tag assistant)
Example of data layer for fired event (tag assistant)