Google Consent Mode V2 | about.gitlab.com
Goal
Google Consent Mode released 2 new parameters: ad_user_data
and ad_personalization
. Please help update the current gtag default script. It can be found on nuxt.config.js lines 319-350.
For reference:
Update to script includes:
- Adding
ad_user_data
andad_personalization
to the denied and granted sections. - Remove
EU
and list out the individual countries. We originally had it listed by country code a month or so ago, consolidated it toEU
. It doesn't seem to work correctly anymore with this Consent Mode V2 update.
New code should be:
gtag('consent', 'default', {
'analytics_storage': 'denied',
'ad_storage': 'denied',
'functionality_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'region':['AT','BE','BG','HR','CY','CZ','DK','EE','FI','FR','DE','GR','HU','IE','IT',
'LV','LT','LU','MT','NL','PL','PT','RO','SK','SI','ES','SE',
'IS','LI','NO','RU','GB','PE','CO','KR','CA-QC'],
'wait_for_update': 500
});
gtag('consent', 'default', {
'analytics_storage': 'granted',
'ad_storage': 'granted',
'functionality_storage': 'granted',
'ad_user_data': 'granted',
'ad_personalization': 'granted',
'wait_for_update': 500
});
Please tag me ( @dennischarukulvanich ) for QA! There are 2 things to look for if successful.
- VPN into denied country (e.g. France, Korea, Quebec Canada)
- Visit about.gitlab.com - OneTrust banner should appear for new users. Do not interact with the banner.
- Type in
dataLayer
into Console to see if the default consent events appear - Under Network tab, reload, filter result for
collect?v=2&tid=g-enfh3x
. Click on the item > click Payload subtab. Check thegcs
value. Since it's denied by default, the value should be100
.0
means No.
Please provide more information related to this request
Make sure the information you provide is relevant for your request. If unsure, please provide all the fields. Add/remove rows as needed.
If this is urgent, what is the business need for the urgency?
-
Yes: privacy/legal concerns
-
No
If the requestor is not the DRI, find out if the DRI is aware of the request / wants to change things.
Does anyone in leadership have eyes on this project?
Compliance / legal / accessibility regulations to be aware of?
-
Yes: https://support.google.com/tagmanager/answer/13695607?hl=en -
No: Please describe why
Page(s)
Which page(s) are involved in this request?
about.gitlab.com
- nuxt.config.js template level
DCI
-
DRI: DEX engineer
-
Consulted: @dennischarukulvanich -
Informed: @BronwynBarnett @amilidou
Requirements
What are the requirements for this request? Checklist below is an example of common requirements, please check all that apply and adjust as necessary:
-
Copy writing -
Illustration -
Custom Graphics -
Research -
Data / Analytics -
UX Design -
Engineering