Implement OneTrust Snippet on Developer Site
Objective
Add OneTrust to developer.gitlab.com when it evolves from a one-pager to a website. In another issue, we'll add Google Tag Manager code snippet in order to configure Google Analytics tracking. This issue will ensure the site is compliant with privacy laws before we add tracking.
Production CDN
Use on your production website. Fastest page load speed. Published changes will be reflected immediately. Place this script at top of the <head>
section of your site.
<!-- OneTrust Cookies Consent Notice start for gitlab.com -->
<script type="text/javascript" src="https://cdn.cookielaw.org/consent/7f944245-c5cd-4eed-a90e-dd955adfdd08/OtAutoBlock.js" ></script>
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="7f944245-c5cd-4eed-a90e-dd955adfdd08" ></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end for gitlab.com -->
Do Not Sell & Cookie Setting Link
This will display either "Do Not Sell My Data" button or "Cookie preferences" button based on where the site visitors come from according to geolocation rule group associated with the domain.
<!-- OneTrust Cookies Settings button start -->
<button id="ot-sdk-btn" class="ot-sdk-show-settings">Cookie preferences</button>
<!-- OneTrust Cookies Settings button end -->
Replace the "Cookies Policy" link on docs.gitlab.com to the above button. Instead of linking directly to the Cookie Policy handbook page, the new button will open the Preference Center window where users can specify the cookie categories to consent or deny. The Preference Center also contains a link to the Cookie Policy handbook page.
Ensure developer.gitlab.com has the same footer.
![](/-/project/27490309/uploads/d5d6a76801b1fe2158dbc35e8d57e2d2/Screenshot_2023-01-05_at_12.15.58_PM.png)
![](/-/project/27490309/uploads/fc8a506e0112414133e108ff26351e38/Screenshot_2023-01-05_at_12.21.11_PM.png)