diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2019-03-26 14:55:42 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-03-26 14:55:42 +0300 |
commit | c3e4c35fac7011ef961de11e5228518f8951515f (patch) | |
tree | a67254cbb688ad8df74b8630a3dab23f87a4b493 /layouts/home.html | |
parent | fad33b4097174d92c518e82c4fb2e904b24f68ba (diff) |
Run the analytics only in production
We had this setting on, but it seems we missed a few pages.
Diffstat (limited to 'layouts/home.html')
-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 73c26cbd..f1d770be 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -24,7 +24,10 @@ <%= yield %> <%= render '/footer.*' %> <%= render '/docsearch.*' %> - <%= render '/analytics.*' %> + <% if ENV['NANOC_ENV'] == 'production' %> + <%# Add analytics only in production %> + <%= render '/analytics.*' %> + <% end %> <%= render '/https_redirect.*' %> <%= render '/schema-microdata.*' %> </body> |