feat(site): add cookieless Google Analytics (#788)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Darius Cepulis
2026-03-09 18:21:25 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent fb0a9b50c1
commit 2641d13812
+14
View File
@@ -45,6 +45,20 @@ const fullTitle =
/>
<meta name="generator" content={Astro.generator} />
{/* Google Analytics (cookieless) */}
<script
is:inline
async
src="https://www.googletagmanager.com/gtag/js?id=G-WTF4CZJSGP"></script>
<script is:inline>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-WTF4CZJSGP", { client_storage: "none" });
</script>
{/* Important stuff */}
<slot name="priority-head" />