Skip to content

Commit af85aec

Browse files
Disable cookie consent pop-up in non-production environments (#21242)
* Disable cookie consent pop-up in non-production environments * changed to jekyll env check in conditional
1 parent 4ec16b5 commit af85aec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/current/_includes/google_tag_manager.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{% if jekyll.environment == 'production' %}
12
<!-- Google Tag Manager -->
23
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
34
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
@@ -8,4 +9,5 @@
89
<!-- Google Tag Manager (noscript) -->
910
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NR8LC4"
1011
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
11-
<!-- End Google Tag Manager (noscript) -->
12+
<!-- End Google Tag Manager (noscript) -->
13+
{% endif %}

0 commit comments

Comments
 (0)