Skip to content

Commit 5fd514c

Browse files
committed
Add google analytics
1 parent cdf26d8 commit 5fd514c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>web</title>
8+
9+
<!-- Google tag (gtag.js) -->
10+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LPQM8H4CBQ"></script>
11+
<script>
12+
window.dataLayer = window.dataLayer || [];
13+
function gtag(){dataLayer.push(arguments);}
14+
gtag('js', new Date());
15+
16+
gtag('config', 'G-LPQM8H4CBQ');
17+
</script>
818
</head>
919
<body>
1020
<div id="root"></div>

0 commit comments

Comments
 (0)