Skip to content

Commit

Permalink
added analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
cornedriesprong committed May 17, 2023
1 parent 8c93e47 commit 5cddc4a
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/layouts/Layout.astro
Expand Up @@ -75,7 +75,24 @@ const socialImageURL = new URL(
/>
)
}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-84270008-1"
></script>

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

gtag("config", "G-PZZ27G3Z71");
</script>
<script is:inline src="/toggle-theme.js"></script>
</head>
<body>
Expand Down

0 comments on commit 5cddc4a

Please sign in to comment.