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>2023-05-31 16:46:27 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2023-05-31 16:46:27 +0300
commit6ce917e2adb8e93f991d6dc67b005b5a556721e4 (patch)
treed52e45a34f7ddbe2322aba3cce6e4c56262d067b /layouts/default.html
parent451fc615cdaa7273431e9e8d7e9dbc198b728657 (diff)
Load the analytics only in the main site
Diffstat (limited to 'layouts/default.html')
-rw-r--r--layouts/default.html4
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/default.html b/layouts/default.html
index 521fcbdb..b4c23ec1 100644
--- a/layouts/default.html
+++ b/layouts/default.html
@@ -88,10 +88,8 @@
<script src="<%= @items['/assets/javascripts/mermaid.*'].path %>"></script>
<% end %>
- <% if production? %>
<%# Add analytics only in production %>
- <%= render '/analytics.*' %>
- <% end %>
+ <%= render '/analytics.*' %>
<% if @item.identifier.to_s == '/ee/update/deprecations.md' %>
<script src="<%= @items['/frontend/deprecations/deprecations.*'].path %>"></script>
<% end %>