Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default consent on page rendering after cookie banner accepted #78

Open
sachatrauwaen opened this issue Apr 18, 2024 · 2 comments
Open

Comments

@sachatrauwaen
Copy link

Hi,
After a work session with a Ads specialist and reading the google tag manager documention, there is a issue with the setDefaultConsentState in the template.

The setDefaultConsentState need to be called with values respecting regional laws.
So for EU most of permissions need to be denied.

And the user accepted permissions need to be set with updateConsentState.

And in gtm_template.tpl the setDefaultConsentState is called with the values comming from the cookies with are not the defaults respecting the region law.

This happen on the page rendering after the cookie banner is accepted and the banner is not shown enymore.

If you agree with this, i can make a pull request for it.

Regards,
Sacha

@tg666
Copy link
Contributor

tg666 commented May 10, 2024

Hi, sorry for the late response.
If I understand correctly, it would be ok if the following would be called in the GTM template:

setDefaultConsentState({ ... real defaults ... });
updateConsentState({ ... permissions from the cookie value ... });

Thus setDefaultConsentState and immediately afterwards updateConsentState.

Is that right or am I wrong?

@robwoodgate
Copy link

robwoodgate commented Jun 6, 2024

I think that's right.

If I may contribute to this discussion, I believe what's ideally needed is a region aware Default Consent Setting, which would look similar to the Composite Consent setting. This would allow ISO-3166-1 alpha-2 country code region defaults to be set as per Google Docs.

Here's a mockup of the fields to give the idea... though false/true might be replaced with denied/granted...

Screenshot 2024-06-06 at 14 56 22

This would allow the default state (in Visibility and Default State) to be "tweaked" regionally as required. For example, only setting default of denied in regions (like EU) where this is required... but allowing implied consent by default in more relaxed regions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants