GA: Turn off tracking for Denmark, Norway, France, Italy, and Austria
## 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();`
Please place the following code before the GTM script, but after the Geolocation Exposure script on all pages:
- about.gitlab.com
- page.gitlab.com
- learn.gitlab.com
- gitlab.com (public facing pages)
- docs.gitlab.com
```
<script>
window.dataLayer = window.dataLayer || [];
dataLayer.push({
'oneTrustCountryId': options.country.toString();,
'event' : 'OneTrustCountryLoad'
});
</script>
```
On Google Tag Manager, apply the oneTrustCountryId dataLayer variable to all Google Analytics tags to the trigger, so the tag doesn't fire for: DK, AT, FR, IT and NO.
## Page(s)
Which page(s) are involved in this request?
- about.gitlab.com
- page.gitlab.com
- learn.gitlab.com
- gitlab.com (public facing pages)
- docs.gitlab.com
## DCI
[DRI, Consulted, Informed](https://about.gitlab.com/handbook/people-group/directly-responsible-individuals/#dri-consulted-informed-dci)
- [ ] DRI: @dennischarukulvanich @miraclebanks @jgarc
- [ ] Consulted: @laurenbarker @justin.vetter @RobRosu @emccrann @BronwynBarnett @MihaiConteanu
- [ ] Informed: @mpreuss22 @christinelee @dmicovic @jahye1 @degan @rkohnke
## 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
- [x] Data / Analytics
- [ ] UX Design
- [x] Engineering
epic