yireo / Yireo_GoogleTagManager2

Open Software License 3.0
147 stars 76 forks source link

Consent-mode & Popup #198

Open JustinElst opened 1 year ago

JustinElst commented 1 year ago

This adds a consent popup/banner and lets Tag Manager know what the selected options are.

Have a look here how Tag Manager handles Consent: https://support.google.com/tagmanager/answer/10718549

This addition is a bit early stages but for now it functions as it should. The Luma theme frontend lacks any styling the Hyva version is quite complete.

This could be a separate addon-module as well, if it's out of scope of this one.

JustinElst commented 10 months ago

@jissereitsma is this something you are willing to add?

jissereitsma commented 8 months ago

Sorry for the loooooooooooooooong delay. Yes, I'm definitely interested in this. However, I personally feel that it would be better to split this module off the main module. I'll check soon how this could be done.

JustinElst commented 8 months ago

No problem! And splitting it might be the best solution here. But it would require some work to integrate the two.... Let me know if you have any questions or need help with this!

JustinElst commented 8 months ago

Ive also added a specific little feature (always on, so no config..) to another branch.. https://github.com/JustinElst/Yireo_GoogleTagManager2/tree/consent-airpress This adds 'consent-events':

With these events you can trigger tags that don't have 'consentMode'. But this feature might be a seperate pull request?