diff options
author | Lauren Barker <lbarker@gitlab.com> | 2019-10-07 18:59:00 +0300 |
---|---|---|
committer | Lauren Barker <lbarker@gitlab.com> | 2019-10-07 18:59:00 +0300 |
commit | dbdaa93d87e6015ad16e26c795002f62d3fea84b (patch) | |
tree | d94856e855321bd5e0bf5f9e5af2e122fcb6d377 /layouts/head.html | |
parent | dbba66d4f90741019f0045535fd1232d309986c6 (diff) |
Fix Cookiebot Implementation
Changed Cookiebot to automatic cookie blocking mode.
Moved cookiebot script to be the very first script within the HEAD-tag of the website.
Related to https://gitlab.com/gitlab-com/www-gitlab-com/issues/5462
Diffstat (limited to 'layouts/head.html')
-rw-r--r-- | layouts/head.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/head.html b/layouts/head.html index 7abdd32c..d5535f7a 100644 --- a/layouts/head.html +++ b/layouts/head.html @@ -34,6 +34,9 @@ <!-- end of docsearch --> <% if ENV['NANOC_ENV'] == 'production' %> <%# Adds GTM only in production %> + <!-- add cookie consent --> + <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="36a06ac5-ddb4-4f91-8337-067ad19ad8d5" data-blockingmode="auto" type="text/javascript"></script> + <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], @@ -42,9 +45,6 @@ })(window,document,'script','dataLayer','GTM-WZCXKT5');</script> <!-- End Google Tag Manager --> - <!-- add cookie consent --> - <script id="Cookiebot" src="https://consent.cookiebot.com/uc.js" data-cbid="36a06ac5-ddb4-4f91-8337-067ad19ad8d5" type="text/javascript" async></script> - <!-- Google webmasters verification --> <meta name="google-site-verification" content="6eFQOFLxYAer08ROqc3I-SAi44F9NmvH7PrUUBR3oCI" /> <% end %> |