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

Google Consent Mode V2 #39867

Open
StuartPaterson opened this issue Feb 29, 2024 · 5 comments
Open

Google Consent Mode V2 #39867

StuartPaterson opened this issue Feb 29, 2024 · 5 comments

Comments

@StuartPaterson
Copy link

Description

Hopefully I haven't missed something obvious in either the documentation, functionality or issue tracker but do you know if amp consent will support Google Consent Mode V2 and the two new consent purposes they have added?

ad_user_data & ad_personalization

https://support.google.com/tagmanager/answer/13695607?hl=en

Alternatives Considered

Not aware of any alternatives, we have updated our CMP template on GTM to cover non-amp pages

Additional Context

At the moment we use amp-consent for Statistics and Marketing but couldn't see any updated documentation around the new consent purposes.

@erwinmombay
Copy link
Member

@powerivq could you take a look at this? would this be new implementation needed or does our current implementation cover this scenario?

@powerivq
Copy link
Contributor

Although I am not working on Google Ads, I think this document says that you should set up all purposes from your CMP, and granular consents will be passed through as a consent string and be processed by the Google Ads.

@StuartPaterson
Copy link
Author

StuartPaterson commented Mar 4, 2024

Thanks for the feedback on this one, we already updated our CMP template on Google Tag Manager as we work with Cookiebot for consent mgmt, so we should be fully compliant on non-amp pages. I've just sort of guessed that for our AMP consent we just added these other two consent purposes...any thoughts on whether this is right or totally wrong would be great.

"purposeConsentRequired": ["purpose-analytics", "purpose-marketing", "purpose-user_data", "purpose-personalization"]

So we have another couple of checkboxes on our consent form -

<label class="consentLabel" for="consent-purpose-user_data" style="color: grey;"> <input id="consent-purpose-user_data" type="checkbox" on="change:siteConsent.setPurpose(purpose-user_data=event.checked)" /> User Data </label> <label class="consentLabel" for="consent-purpose-personalization" style="color: grey;"> <input id="consent-purpose-personalization" type="checkbox" on="change:siteConsent.setPurpose(purpose-personalization=event.checked)" /> Personalization </label>

@powerivq
Copy link
Contributor

powerivq commented Mar 6, 2024

@StuartPaterson purposeConsentRequired seems right. As to the consent screen HTML, I have no knowledge as to your specific CMP and the CMP is probably your best resource.

@StuartPaterson
Copy link
Author

@powerivq purposeConsentRequired is the part we already know to be correct as this is specified on the amp-dev documentation.

This post is more about the 'consent purposes' within the purposeConsentRequired array, in regard to the new consent types introduced by Google Consent Mode V2, as mentioned in my original query.

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

No branches or pull requests

3 participants