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:25:42 +0300 |
commit | 0e0b0cca4855c6f561ed18294bb18b4d2d396712 (patch) | |
tree | 610d7ce7da2df907b9270b83df3e5439bd60e5f3 | |
parent | 6ce1afc89b0198c3b406139883fd843646f46a12 (diff) |
Do not load any 3rd party analytics in single versions10.5
-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 3acdfee5..c93fe438 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -11,7 +11,10 @@ <%= render '/footer_homepage.*' %> <%= 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.*' %> </body> </html> |