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/archives.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/archives.html')
-rw-r--r-- | layouts/archives.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/archives.html b/layouts/archives.html index 8713dcb8..e8ed67c2 100644 --- a/layouts/archives.html +++ b/layouts/archives.html @@ -33,7 +33,10 @@ <script type="application/javascript" src="<%= @items['/assets/javascripts/badges.*'].path %>"></script> <%= 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> |