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:
authorMarcia Ramos <virtua.creative@gmail.com>2018-10-11 21:23:44 +0300
committerMarcia Ramos <virtua.creative@gmail.com>2018-10-11 21:23:44 +0300
commit4936d788a17884da636f0a303cb472b9dcc908bb (patch)
treef175d267c05ac134c6bf71c2d221b3f5207af35a /layouts/home.html
parent02b0aec8f2d07cd5951485108f9ecfa1e41c7e52 (diff)
Implement Google Tag Manager
Diffstat (limited to 'layouts/home.html')
-rw-r--r--layouts/home.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/home.html b/layouts/home.html
index 04aea1fe..043991da 100644
--- a/layouts/home.html
+++ b/layouts/home.html
@@ -5,6 +5,13 @@
<link rel="canonical" href="<%= @config[:base_url] %>/">
</head>
<body class="landing">
+ <% if ENV['NANOC_ENV'] == 'production' %>
+ <%# Adds GTM only in production // leave this immediately after the opening the body tag%>
+ <!-- Google Tag Manager (noscript) -->
+ <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WZCXKT5"
+ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
+ <!-- End Google Tag Manager (noscript) -->
+ <% end %>
<%= render '/landing-header.*' %>
<div class="landing-header flex-container flex-column justify-center align-center">
<h1 class="flex-container">👋 Hello, how can we help?</h1>