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/404.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/404.html')
-rw-r--r-- | layouts/404.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/404.html b/layouts/404.html index fd9a6eea..5cb2934d 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -35,7 +35,10 @@ }); </script> <script type="application/javascript" src="<%= @items['/assets/javascripts/404.*'].path %>"></script> - <%= render '/analytics.*' %> + <% if ENV['NANOC_ENV'] == 'production' %> + <%# Add analytics only in production %> + <%= render '/analytics.*' %> + <% end %> <%= render '/https_redirect.*' %> </body> </html> |