mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(site): add cookieless Google Analytics (#788)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
fb0a9b50c1
commit
2641d13812
@@ -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" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user