Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const {
} = Astro.props;

const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const GA_ID = 'G-TLHVYKJJ32';
---

<!doctype html>
Expand Down Expand Up @@ -89,6 +90,15 @@ const canonicalURL = new URL(Astro.url.pathname, Astro.site);
}
}
})} />

<!-- Google Analytics -->
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`}></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', GA_ID);
</script>
</head>
<body class="bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 font-serif antialiased">
<slot />
Expand Down
Loading