diff options
Diffstat (limited to 'layouts/gtm.html')
-rw-r--r-- | layouts/gtm.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/gtm.html b/layouts/gtm.html index 87ebf4cb..bf124396 100644 --- a/layouts/gtm.html +++ b/layouts/gtm.html @@ -1,4 +1,4 @@ -<% if production? and ENV['CI_COMMIT_REF_NAME'] == ENV['CI_DEFAULT_BRANCH'] %> +<% if production_and_default_branch? %> <%# Adds GTM only in production // leave this immediately after the opening the body tag%> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WZCXKT5" |