Skip to content

Commit 705ecd4

Browse files
committed
chore: add Google tag
1 parent 63fc57a commit 705ecd4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app.html

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<meta charset="utf-8" />
66
<link rel="icon" href="%sveltekit.assets%/favicon.ico" />
77
<meta name="viewport" content="width=device-width, initial-scale=1" />
8+
<!-- Google tag (gtag.js) -->
9+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CKFT7WE83R"></script>
10+
<script>
11+
window.dataLayer = window.dataLayer || [];
12+
function gtag() { dataLayer.push(arguments); }
13+
gtag('js', new Date());
14+
15+
gtag('config', 'G-CKFT7WE83R');
16+
</script>
817
%sveltekit.head%
918
</head>
1019

0 commit comments

Comments
 (0)