Skip to content

Update denied regions list for GTM

What does this MR do and why?

Update denied regions list for google tag manager across all gitlab.com pages:

Please help update this block of code across all gitlab.com pages where the denied section > region list is:

region:["KR","PE","CO","CA-QC","EU","GB","RU","LI","NO","IS"]

AND include State ID within the dataLayer push:

{dataLayer.push({event:"OneTrustCountryLoad",oneTrustCountryId:t.country.toString(),oneTrustStateId:t.state?.toString()})}

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshot_2024-01-30_at_16.07.02

How to set up and validate locally

  • Setup GDK to simulate SaaS.
  • Add google_tag_manager_nonce_id: '_google_tag_manager_nonce_id_' to extra section of gitlab.yml.
  • Restart GDK. Sign is as root.
  • Visit /-/trials/new?namespace_id=22 and open page source.
  • Validate updated GTM code.

Related to #439725

Edited by Serhii Yarynovskyi

Merge request reports