Skip to content

Commit 16fe2ca

Browse files
committed
feat: google tag manager
1 parent 0a72aa9 commit 16fe2ca

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@
1010
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
1111
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
1212
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
13-
13+
<!-- Google Tag Manager -->
14+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
15+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
16+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
17+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
18+
})(window,document,'script','dataLayer','GTM-TVJMBBXW');</script>
19+
<!-- End Google Tag Manager -->
1420
<!-- Google tag (gtag.js) -->
1521
<script async src="https://www.googletagmanager.com/gtag/js?id=G-L1N8GXV3L2"></script>
1622
<script>
@@ -25,4 +31,8 @@
2531
<div id="root"></div>
2632
<script type="text/babel" src="index.js"></script>
2733
</body>
34+
<!-- Google Tag Manager (noscript) -->
35+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-TVJMBBXW"
36+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
37+
<!-- End Google Tag Manager (noscript) -->
2838
</html>

0 commit comments

Comments
 (0)