Since GDPR is released we have to be following some rules to setting Cookies in users browsers. The problem is that we are serving all our Pixel's via Google Tag Manager, and the only way to exclude adding Cookies are to exclude the whole Google Tag Manager to load before consent is given.
What if i would want to be able to give the user ability to exclude and include some of the pixel's in Google Tag Manager.
Let's say i have these Pixel's in my GTM container:
- Hotjar
- Google Analytics
- AdForm
- Google Ads
- Etc....
The user need to exclude or include all of these Pixel's if i exclude or include the whole GTM container in Cookie consent. How i can i give the user ability to exclude only FEW of those?
So a user can practically allow HotJar and Google Analytics but not the other Pixel's. How can i achive this? I tried to think about excluding the HIT(payload) to be sent but a Cookie will be set anyway. This is not GDPR complaient.