Skip to content

Commit

Permalink
add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
kaminaly committed Jul 30, 2024
1 parent 6d31e44 commit 4cd284c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ const canonicalURL: URL = new URL(Astro.url.pathname, Astro.site)
<title>{pageTitle}</title>

<script src="../scripts/main.ts"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-NZ6C341T6V"></script>
<script>
// @ts-ignore
window.dataLayer = window.dataLayer || []
function gtag() {
// @ts-ignore
dataLayer.push(arguments)
}
// @ts-ignore
gtag('js', new Date())
// @ts-ignore
gtag('config', 'G-NZ6C341T6V')
</script>

{description && <meta name="description" content={description} />}
<meta name="twitter:card" content="summary_large_image" />
Expand Down

0 comments on commit 4cd284c

Please sign in to comment.