Skip to content

Commit 46206ba

Browse files
committed
Add Google Analytics 4 tracking (GA4)
- Inject gtag.js snippet before </head> for SEO monitoring - Measurement ID: G-XXXXXXXXXX (placeholder — replace with real ID)
1 parent 4935c49 commit 46206ba

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/site/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"author": { "@type": "Organization", "name": "EmbeddedOS", "url": "https://embeddedos-org.github.io/" }
3232
}
3333
</script>
34+
<!-- Google Analytics 4 -->
35+
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
36+
<script>
37+
window.dataLayer = window.dataLayer || [];
38+
function gtag(){dataLayer.push(arguments);}
39+
gtag('js', new Date());
40+
gtag('config', 'G-XXXXXXXXXX');
41+
</script>
3442
</head>
3543
<body>
3644
<nav class="navbar">

0 commit comments

Comments
 (0)