From 059e2b8f110beffe21b4159f29443c11bdf451d8 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Fri, 25 Oct 2019 09:17:26 +0200 Subject: Do not load any 3rd party analytics in single versions --- layouts/gtm.html | 2 +- layouts/home.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/gtm.html b/layouts/gtm.html index 033a4728..65f242c4 100644 --- a/layouts/gtm.html +++ b/layouts/gtm.html @@ -1,4 +1,4 @@ -<% if ENV['NANOC_ENV'] == 'production' %> +<% if ENV['NANOC_ENV'] == 'production' and ENV['CI_COMMIT_REF_NAME'] == 'master' %> <%# Adds GTM only in production // leave this immediately after the opening the body tag%>