Reputation: 71
I am trying to implement the Cookiebot CMP using Google Tag Manager and Google's Consent Mode. I followed the tutorial on https://support.cookiebot.com/hc/en-us/articles/360003793854-Google-Tag-Manager-deployment but the only other tag in my container besides the Cookiebot CMP tag, is the GA4 tag and that fires all the time. My Cookiebot CMP tag has a trigger "Consent Initialization - All Pages". My GA4 tag has a trigger "All pages". Since I understood that the Cookiebot CMP is tightly integrated with Google's Consent Mode and since the GA4 tag is by default integrated with Google's Consent Mode I thought as long as no permission is given in Cookiebot, the GA4 tag would not be triggered. The question is: why is GA4 triggered although no consent was given. Second question: how can I check the value of the Consent Mode variables "ad_storage",... In the Google Tag Manager Preview/debug mode I did not find any of these variables so this makes it difficult for me to check if the Cookiebot tag failed to set the Consent Mode variables or if the GA4 tag failed to respect the Consent Mode variable settings.
UPDATE: I think I figured out some of the above:
Upvotes: 2
Views: 4199
Reputation: 665
You already found out most of your answer, but let me summarize and add to that:
user_pseudo_id
identifying the user will be stripped off (source)analytics_storage
set to granted
or denied
based on the gcs
parameter of the hit in your DevTools' Network tab:
gcs=G100
is denied
gcs=G111
is granted
_ga
, _gid
, etc.) when analytics_storage
is denied
Upvotes: 0
Reputation: 51
I had too the problem of the GA4 tag firing without consent.
The issue was that I had wrongly set the Default Consent State
of Cookiebot CMP to Granted
instead of Denied
and once I set it correctly, the problem was solved.
In Google Tag Manager:
Cookiebot CMP Tag
Tag Configuration
Default Consent State
is properly set
Upvotes: 2