Skip to content

Commit ca35969

Browse files
committed
chore: GTM 설정 추가
1 parent 25e787f commit ca35969

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

index.html

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,35 @@
4444

4545
<!-- Vite Entry Point -->
4646
<script type="module" src="/src/main.jsx"></script>
47+
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-NM9J9VJ2");
60+
</script>
61+
<!-- End Google Tag Manager -->
4762
</head>
4863
<body>
49-
<noscript>공연단체들을 위한 연극, 뮤지컬 대본 및 라이선스 거래 플랫폼</noscript>
64+
<noscript
65+
>공연단체들을 위한 연극, 뮤지컬 대본 및 라이선스 거래 플랫폼</noscript
66+
><!-- Google Tag Manager (noscript) -->
67+
<noscript
68+
><iframe
69+
src="https://www.googletagmanager.com/ns.html?id=GTM-NM9J9VJ2"
70+
height="0"
71+
width="0"
72+
style="display: none; visibility: hidden"
73+
></iframe
74+
></noscript>
75+
<!-- End Google Tag Manager (noscript) -->
5076
<div id="root"></div>
5177
</body>
5278
</html>

0 commit comments

Comments
 (0)