Skip to content

Commit 29ae853

Browse files
committed
Added gtm
1 parent ab1b455 commit 29ae853

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

_includes/googletagmanager_body.html

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- Google Tag Manager (noscript) -->
2+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TK7DKT73"
3+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
4+
<!-- End Google Tag Manager (noscript) -->

_includes/googletagmanager_head.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Google Tag Manager -->
2+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6+
})(window,document,'script','dataLayer','GTM-TK7DKT73');</script>
7+
<!-- End Google Tag Manager -->

_includes/head.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{%- include googleanalytics.html -%}
2+
{%- include googletagmanager_head.html -%}
23

34
{%- assign page_heatmap = page.heatmap | default: false -%}
45
{%- assign layout_heatmap = layout.heatmap | default: false -%}

_layouts/base.html

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
</script>
1313
</head>
1414
<body>
15+
{%- include googletagmanager_body.html -%}
1516
{{ content }}
1617
</body>
1718
</html>

0 commit comments

Comments
 (0)