Skip to content

Commit 6fecebc

Browse files
yongsk0066claude
andcommitted
feat: Add Google Tag Manager for analytics tracking
- Add GTM container (GTM-MC67N3XW) to index.html - Include both script and noscript implementations - Enable site analytics and user behavior tracking 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8817c40 commit 6fecebc

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,22 @@
4646
<link rel="alternate" hreflang="en" href="https://yongsk0066.github.io/qr-visualizer/en" />
4747
<link rel="alternate" hreflang="x-default" href="https://yongsk0066.github.io/qr-visualizer/" />
4848

49+
<!-- Google Tag Manager -->
50+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
51+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
52+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
53+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
54+
})(window,document,'script','dataLayer','GTM-MC67N3XW');</script>
55+
<!-- End Google Tag Manager -->
56+
4957
<script async src="/opencv.js"></script>
5058
</head>
5159
<body>
60+
<!-- Google Tag Manager (noscript) -->
61+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MC67N3XW"
62+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
63+
<!-- End Google Tag Manager (noscript) -->
64+
5265
<div id="root"></div>
5366
<script type="module" src="/src/main.tsx"></script>
5467
</body>

0 commit comments

Comments
 (0)