Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2019-03-26 14:55:42 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-03-26 14:55:42 +0300
commitc3e4c35fac7011ef961de11e5228518f8951515f (patch)
treea67254cbb688ad8df74b8630a3dab23f87a4b493 /layouts/404.html
parentfad33b4097174d92c518e82c4fb2e904b24f68ba (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.html5
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>