diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2019-10-25 10:17:26 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-10-25 14:21:47 +0300 |
commit | f72d759a00e661b6c253d45fdbee4b60d430f5d9 (patch) | |
tree | 8b7662c1013a2f76bab0cc286ba7e7d128534398 | |
parent | 83a5e2c2300d6568a878c7752400f98f6d075da2 (diff) |
Do not load any 3rd party analytics in single versions11.0
-rw-r--r-- | layouts/home.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/home.html b/layouts/home.html index 7aba95bf..958e723f 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -23,7 +23,10 @@ <%= yield %> <%= render '/footer.*' %> <%= render '/docsearch.*' %> - <%= render '/analytics.*' %> + <% if ENV['NANOC_ENV'] == 'production' and ENV['CI_COMMIT_REF_NAME'] == 'master' %> + <%# Add analytics only in production %> + <%= render '/analytics.*' %> + <% end %> <%= render '/https_redirect.*' %> <%= render '/schema-microdata.*' %> </body> |