Skip to content

Commit 478ad48

Browse files
authored
update Google Analytics Script (#1770)
1 parent 9491ca7 commit 478ad48

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/src/app.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@
1818

1919
%sveltekit.head%
2020

21-
<!-- Global site tag (gtag.js) - Google Analytics -->
22-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121780722-2"></script>
21+
<!-- Google tag (gtag.js) -->
22+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WQ8M55VX1Z"></script>
23+
<script>
24+
window.dataLayer = window.dataLayer || [];
25+
function gtag(){dataLayer.push(arguments);}
26+
gtag('js', new Date());
27+
gtag('config', 'G-WQ8M55VX1Z');
28+
</script>
2329
</head>
2430
<body data-sveltekit-preload-data="hover">
2531
<div style="display: contents">%sveltekit.body%</div>

0 commit comments

Comments
 (0)