diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2018-10-11 21:23:44 +0300 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2018-10-11 21:23:44 +0300 |
commit | 4936d788a17884da636f0a303cb472b9dcc908bb (patch) | |
tree | f175d267c05ac134c6bf71c2d221b3f5207af35a /layouts/home.html | |
parent | 02b0aec8f2d07cd5951485108f9ecfa1e41c7e52 (diff) |
Implement Google Tag Manager
Diffstat (limited to 'layouts/home.html')
-rw-r--r-- | layouts/home.html | 7 |
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> |