Skip to content

Commit 7ff6040

Browse files
changed to jekyll env check in conditional
1 parent c39b886 commit 7ff6040

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
1+
{% if jekyll.environment == 'production' %}
12
<!-- Google Tag Manager -->
2-
<script>
3-
if (window.location.hostname == 'cockroachlabs.com') {
4-
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
54
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
65
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
76
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
8-
})(window,document,'script','dataLayer','GTM-NR8LC4');
9-
}
10-
</script>
11-
<!-- End Google Tag Manager -->
7+
})(window,document,'script','dataLayer','GTM-NR8LC4');</script>
8+
<!-- End Google Tag Manager -->
129
<!-- Google Tag Manager (noscript) -->
1310
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NR8LC4"
1411
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
15-
<!-- End Google Tag Manager (noscript) -->
12+
<!-- End Google Tag Manager (noscript) -->
13+
{% endif %}

0 commit comments

Comments
 (0)