Skip to content

Commit

Permalink
Feat : GA 코드 추가 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
teagu123 authored Jul 12, 2024
1 parent a155bf4 commit ec12e72
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js',
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-MDXKSH9');
</script>
<!-- End Google Tag Manager -->
<meta
name="naver-site-verification"
content="54136140958bc6d89ff61491854437d62562ec4f"
Expand All @@ -11,29 +28,32 @@
<meta name="llkelionuniv" content="멋쟁이사자처럼 대학 사이트" />
<title>사단법인 멋쟁이사자처럼</title>
</head>

<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-BEH8CXVXXG"
></script>
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-5JPCK23B');
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'G-BEH8CXVXXG');
</script>

<body>
<div id="root"></div>
</body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-5JPCK23B"
src="https://www.googletagmanager.com/ns.html?id=GTM-MDXKSH9"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
</html>

0 comments on commit ec12e72

Please sign in to comment.