I spend a lot of time trying to setup GTM + Consent Mode lauching CMP from the GTM.
I tried with a blank HTYML page, and a very simple GTM account.
CMP is triggered on Consent init.
Analytics is triggered have been tested on All pages, DOM Ready, etc....
Whatever I do, it is launch 2 times, except if I launch it on trigger Consent Init, before the CMP, but this is too early, I did not have nothing ready for my datalayer at this moment.
Strange thing, on my Analytics template, I set up a custom dimension. When it is launch 2 times, there is not my custom dimension on the second times.
It look likes the Google Consent blackbox code is firing some pageView inside.
Please sign in to leave a comment.