GA: OneTrust Country ID for docs.gitlab.com
Goal
Related note: https://gitlab.com/gitlab-com/marketing/digital-experience/buyer-experience/-/issues/997#note_1025872795
Recent laws were passed that declared Google Analytics illegal since EU data is processed on a US server. Turn off Google Analytics entirely in Denmark, Austria, France, Italy and Norway.
Please refer to this OneTrust Geolocation Exposure script: https://community.cookiepro.com/s/article/UUID-f1caf6bb-0003-8e79-6caf-2a7d04e357d7?language=en_US
This line will grab the country ID from OneTrust:
var country = options.country.toString();
The geolocation script is already on placed:
Please place the following code before the GTM script, but after the Geolocation Exposure script on all about.gitlab.com pages.
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'oneTrustCountryId': options.country.toString();,
'event' : 'OneTrustCountryLoad'
});
</script>
For QA, type in "dataLayer" in console on Dev Mode. The OneTrustCountryLoad
event name and the correlated country ID should populate. If you're in the US, you should see US
. This dataLayer event should fire on all pages.
DCI
-
DRI: TBD -
Consulted: @laurenbarker @dennischarukulvanich -
Informed: @mpreuss22 @christinelee
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