Skip to content

Commit 90fcc01

Browse files
author
Shane DeWael
committed
Add GTM
1 parent 47e3687 commit 90fcc01

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs-src/_themes/slack/layout.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
<link rel="stylesheet" href="{{ pathto('./_static/' + 'docs.css', 1) }}" type="text/css" />
1818
{%- endmacro %}
1919

20+
<!-- Google Tag Manager -->
21+
<script>(function (w, d, s, l, i) {
22+
w[l] = w[l] || []; w[l].push({
23+
'gtm.start':
24+
new Date().getTime(), event: 'gtm.js'
25+
}); var f = d.getElementsByTagName(s)[0],
26+
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
27+
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
28+
})(window, document, 'script', 'dataLayer', 'GTM-KFZ5MK7');</script>
29+
<!-- End Google Tag Manager -->
2030
{{ css() }}
2131
{%- block linktags %}
2232
<link id="favicon" rel="shortcut icon" href="https://a.slack-edge.com/4f28/img/icons/favicon-32.png" type="image/png" />
@@ -28,6 +38,9 @@
2838
</head>
2939

3040
<body class="api light_theme">
41+
<!-- Google Tag Manager (noscript) -->
42+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KFZ5MK7" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
43+
<!-- End Google Tag Manager (noscript) -->
3144

3245
{%- block header %}
3346
<header>

0 commit comments

Comments
 (0)