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/archives.html | |
parent | 02b0aec8f2d07cd5951485108f9ecfa1e41c7e52 (diff) |
Implement Google Tag Manager
Diffstat (limited to 'layouts/archives.html')
-rw-r--r-- | layouts/archives.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/archives.html b/layouts/archives.html index 97778c41..cf108aa8 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -4,6 +4,13 @@ <%= render '/head.*' %> </head> <body> + <% 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 '/header.*' %> <div class="wrapper"> <div class="main class js-main-wrapper"> |