django-cookie-consent
django-cookie-consent copied to clipboard
Integrate with google tag manager, possible, how?
I am currently evaluating how to implement a consent banner for a website. They use Google Tag Manager (as most or many sites nowadays).
I found this article: https://blog.google/products/marketingplatform/360/respect-user-consent-choices-google-tag-manager/
So the question is: As far as I understand, with django-cookie-consent it would be possible to either include or exclude the google tag manager snippet, that will thenafter include all the tags that are configured. But, reading the above article, it should be possible to always include the tag, but then tell google tag manager to not include ad related tags, but analytics would be ok, for example.
Thinking about it, this would probably be possible with django-cookie-consent? Integrating my google tag with these APIs: https://developers.google.com/tag-platform/tag-manager/templates/consent-apis and the consents given via django-cookie-consent? It would need to orient the consents at what google says (ad_storage/analytics_storage/security_storage, to mention a few), that's for sure.
Has anyone done this? I would be willing and motivated to write docs, as it seems it is probably a common use case, that should not prevent us from using django-cookie-consent?