Skip to content

Commit f52dc96

Browse files
committed
feat: add Google Analytics tracking script to app.html
1 parent 873c7a3 commit f52dc96

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/app.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4+
<!-- Google tag (gtag.js) -->
5+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JNWHD22PPN"></script>
6+
<script>
7+
window.dataLayer = window.dataLayer || [];
8+
function gtag(){dataLayer.push(arguments);}
9+
gtag('js', new Date());
10+
11+
gtag('config', 'G-JNWHD22PPN');
12+
</script>
413
<meta charset="utf-8" />
514
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
615
<meta name="viewport" content="width=device-width, initial-scale=1" />

0 commit comments

Comments
 (0)