1. Naše služby
digitálního marketingu
Consent mode od začátku po
funkční nastavení v GTM
(Consent mode - from zero to hero)
Measure Camp 2023
Michal Blažek
Marketingmakers.net
2. Consent mode
Did user consented?
Full data processed as
usual
Data are used only for
modelling in GA4
Anonymous hit sent to
BigQuery
Full hit sent to
BigQuery
Data sent to marketing
pixels
Limited or no data sent
to marketing pixels
5. GA4 data modelled vs. BQ data
Works pretty well
But you should always verify against
BigQuery - especially when event has
low data.
6. Three options of settings
1. Developer (or cookie consent solution) set-up gtag default and update on the
website. - example described here
2. Developer send dataLayer and we set-up consent mode default and update in
GTM - my ❤ solution
3. Combination of these two - cookie consent solution set-up a gtag and send
dataLayer push to inform marketer.
10. Pros and cons
Pros:
Full control
Can fix problems
Better implementation with known cookie bar solutions
Cons:
My responsibility :)
11. Practical consent mode implementation in GTM with Orestbida
cookie bar & Simo Ahava gtag template
https://orestbida.com/demo-projects/cookieconsent/
+
https://tagmanager.google.com/gallery/#/owners/gtm-templates-simo-ahava/te
mplates/consent-mode
https://webova-analytika.cz/mc23.html
Possible enhancements for Facebook and Sklik consent mode
12. Default
window.dataLayer = window.dataLayer || [];
windows.dataLayer.push({
"event": "dl.ready",
"consent_state": {
"functionality_storage": "granted",
"ad_storage": "granted", // or"denied"
"analytics_storage": "granted",
"personalization_storage": "granted"
}
// you can use this for other info like content type, user-id
etc.
});
14. Tip: Find out the source of consent data
If cookie data is used - check if cookie is set-up before the update
Do not send another pageview after consent to avoid duplicates (send some
consent_update event). Pageview event will be tracked automatically if config tag
contains it.