Skip to content

Commit 104afc1

Browse files
authored
Add additional GTM script (#1498)
1 parent 462bfcb commit 104afc1

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- Google Tag Manager: docs.min.io (noscript) -->
2+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-56L9FLVL" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3+
<!-- End Google Tag Manager (noscript) -->

source/_templates/head.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@
99
<link rel="preload" href="{{ pathto('_static/fonts/inter/Inter-Bold.woff2', 1) }}" as="font" type="font/woff2" crossorigin>
1010
<link rel="preconnect" href="https://E1CSOK3UC2-dsn.algolia.net" crossorigin />
1111

12-
<!-- Google Tag Manager -->
12+
<!-- Google Tag Manager: docs.min.io -->
13+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
14+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
15+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
16+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
17+
})(window,document,'script','dataLayer','GTM-56L9FLVL');</script>
18+
19+
<!-- Google Tag Manager: main -->
1320
<script>
1421
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
1522
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],

source/_templates/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
{%- endmacro %}
6060

6161
{%- block header %}
62+
{%- include "gtm-noscript.html" %}
63+
6264
{%- include "header.html" %}
6365
{%- endblock %}
6466

0 commit comments

Comments
 (0)