diff options
author | Achilleas Pipinellis <axil@gitlab.com> | 2023-06-02 13:48:14 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2023-06-02 13:48:14 +0300 |
commit | 5c5509e9e1044a3a3b51891afa7655f7749528fc (patch) | |
tree | 4b2316935fa600cce5e5e07450c7080843dbe0bb /layouts/home.html | |
parent | b9846e4838845ad96c2f1e327c18ad95924a9837 (diff) | |
parent | ff79742f34a369d05a558e5daf70aba43f04e8de (diff) |
Merge branch 'cherry-pick-69942af7-14.4' into '14.4'14.4
Load the analytics only in the main site (14.4 backport)
See merge request https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/3918
Merged-by: Achilleas Pipinellis <axil@gitlab.com>
Co-authored-by: Sarah German <sgerman@gitlab.com>
Diffstat (limited to 'layouts/home.html')
-rw-r--r-- | layouts/home.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/layouts/home.html b/layouts/home.html index d5aefa52..fba3de9c 100644 --- a/layouts/home.html +++ b/layouts/home.html @@ -9,10 +9,8 @@ <%= render '/header.*' %> <%= yield %> <%= render '/docsearch.*' %> - <% if production? and ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> <%# Add analytics only in production %> - <%= render '/analytics.*' %> - <% end %> + <%= render '/analytics.*' %> <%= render '/schema-microdata.*' %> <script src="<%= @items['/frontend/header/index.*'].path %>"></script> <script src="<%= @items['/frontend/home/index.*'].path %>"></script> |