Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/head.html')
-rw-r--r--layouts/head.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/head.html b/layouts/head.html
index dea9c913..804dd0bc 100644
--- a/layouts/head.html
+++ b/layouts/head.html
@@ -44,7 +44,6 @@
<link rel="stylesheet" href="<%= @items['/assets/stylesheets/font-awesome.min.*'].path %>">
<% if production? %>
- <%# Adds GTM only in production %>
<!-- OneTrust Cookies Consent Notice start -->
<script src="https://cdn.cookielaw.org/consent/7f944245-c5cd-4eed-a90e-dd955adfdd08/OtAutoBlock.js"></script>
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" charset="UTF-8" data-domain-script="7f944245-c5cd-4eed-a90e-dd955adfdd08"></script>
@@ -52,7 +51,10 @@
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end -->
+<% end %>
+<% if production_and_default_branch? %>
+ <%# Adds GTM only in production %>
<!-- Google Tag Manager -->
<script src="<%= @items['/assets/javascripts/google_tagmanager.*'].path %>"></script>
<!-- End Google Tag Manager -->