GTM custom pixel & consent mode v2

Dabrowka
Tourist
11 0 1

Is anyone of you using GTM custom pixel and managed to implement a Cookie Banner that's compatible with Google Consent Mode v2? I've tried coockiebot, but no luck. 

Replies 3 (3)

Taimoor99
Shopify Partner
2 0 1

Hi @Dabrowka facing the same issue. I have tried few other cookie apps but same problem will update if i find a solution

Dabrowka
Tourist
11 0 1

Hey Robiulawoalraju 🙂

 

the screenshots you sent can't come from a GTM custom pixel because the preview doesn't work with this kind of GTM integration. The cookie banner does not apper after creating and publishing tag with coockiebot ID. 

Dabrowka_0-1710156495375.png

 

analytic_wlfdn
Shopify Partner
5 0 4

I think you'll need to place the consent system in the theme itself. Have the pixel read an associated cookie from the parent page for your "default" Google Consent, and then set up a custom event for whenever the consent system updates - having the pixel listen for that custom event for the "update" Google Consent.