I want to make integration between consent manager and GTM.
In article: Consent Manager integration with Google Tag Manager | Piwik PRO help center it’s written that:
In this code, you can change:
'event': 'stg.consentDecision', : this is the name of the event.
Does it mean that for every consent type like that I create (analytics_cosent, marketing_consent etc.) I need to give unique name like “stg.consentDecision_analytics” or “stg.consentDecision_marketing”.
Thanks in advance for help!
The name of this datalayer event doesn’t really matter (since it’s not used later on). Just make sure that you:
- use unique name for the consent variable (e.g. analytics_consent, marketing_consent, etc.)
- assign proper consent type the the tag fired in Piwik PRO Tag Manager (e.g. Analytics, Marketing Automation, etc.).
Thanks for answer. To be sure - if I have tags for almost every consent type like in here: https://4people.tinytake.com/msc/Njg0MjAyOV8xOTQ5Nzc0NA
can I have the same event name in every tag? Of course every tag has different unique name for the consent variable.
Yes, since the trigger in GTM is based only on the variable name.