Skip to content

Commit 7207739

Browse files
committed
feat: add google tag manager
1 parent d2e7cbc commit 7207739

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,25 @@
4545
<!-- Preload font -->
4646
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4747
<link rel="preload" as="style" href="https://fonts.googleapis.com/css2?family=Mitr:wght@300;400;500&family=Pridi:wght@300;500&display=swap" />
48+
<!-- Google tag manager -->
49+
<script>
50+
;(function (w, d, s, l, i) {
51+
w[l] = w[l] || []
52+
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' })
53+
var f = d.getElementsByTagName(s)[0],
54+
j = d.createElement(s),
55+
dl = l != 'dataLayer' ? '&l=' + l : ''
56+
j.async = true
57+
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl
58+
f.parentNode.insertBefore(j, f)
59+
})(window, document, 'script', 'dataLayer', 'GTM-K8GKZFP')
60+
</script>
4861
</head>
4962
<body>
5063
<main id="root"></main>
5164
<script type="module" src="/src/main.tsx"></script>
65+
<noscript
66+
><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K8GKZFP" height="0" width="0" style="display: none; visibility: hidden"></iframe
67+
></noscript>
5268
</body>
5369
</html>

0 commit comments

Comments
 (0)