Skip to content

Commit 40c9d81

Browse files
committed
Add gtag
Signed-off-by: Jay Wang <[email protected]>
1 parent 5730fc3 commit 40c9d81

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

index.html

+15
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,21 @@
6262
rel="stylesheet"
6363
/>
6464

65+
<!-- Google tag (gtag.js) -->
66+
<script
67+
async
68+
src="https://www.googletagmanager.com/gtag/js?id=G-MWB75LY452"
69+
></script>
70+
<script>
71+
window.dataLayer = window.dataLayer || [];
72+
function gtag() {
73+
dataLayer.push(arguments);
74+
}
75+
gtag('js', new Date());
76+
77+
gtag('config', 'G-MWB75LY452');
78+
</script>
79+
6580
<link rel="stylesheet" href="/global.css" />
6681
<script type="module" src="/src/components/page/page.ts"></script>
6782
</head>

0 commit comments

Comments
 (0)