Skip to content

Commit 6d27695

Browse files
committed
feature: GA 추가
1 parent a85f25f commit 6d27695

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

nginx/pages/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@
5353
</script>
5454
<!-- Sweetalert2 -->
5555
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
56+
<!-- GA / Google tag (gtag.js) -->
57+
<script
58+
async
59+
src="https://www.googletagmanager.com/gtag/js?id=G-8G3N74JV82"
60+
></script>
61+
<script>
62+
window.dataLayer = window.dataLayer || [];
63+
function gtag() {
64+
dataLayer.push(arguments);
65+
}
66+
gtag("js", new Date());
67+
68+
gtag("config", "G-8G3N74JV82");
69+
</script>
5670
<!-- CUSTOM -->
5771
<link rel="stylesheet" href="./index/index.css" />
5872
</head>

nginx/pages/index/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,20 @@
5353
</script>
5454
<!-- Sweetalert2 -->
5555
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
56+
<!-- GA / Google tag (gtag.js) -->
57+
<script
58+
async
59+
src="https://www.googletagmanager.com/gtag/js?id=G-8G3N74JV82"
60+
></script>
61+
<script>
62+
window.dataLayer = window.dataLayer || [];
63+
function gtag() {
64+
dataLayer.push(arguments);
65+
}
66+
gtag("js", new Date());
67+
68+
gtag("config", "G-8G3N74JV82");
69+
</script>
5670
<!-- CUSTOM -->
5771
<link rel="stylesheet" href="./index.css" />
5872
</head>

0 commit comments

Comments
 (0)