Skip to content

Commit

Permalink
2024.10.30: Re-enable google analytics.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldjava committed Oct 30, 2024
1 parent e1c8d10 commit 2048d6e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ const structuredData = {
class={`${scrollSmooth && "scroll-smooth"}`}
>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V66JPM85FQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-V66JPM85FQ');
</script>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
Expand Down Expand Up @@ -136,15 +146,6 @@ const structuredData = {

<script is:inline src="/toggle-theme.js" async></script>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V66JPM85FQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-V66JPM85FQ');
</script>
<body>
<slot />
</body>
Expand Down

0 comments on commit 2048d6e

Please sign in to comment.