Skip to content

Commit

Permalink
feat: add ga
Browse files Browse the repository at this point in the history
  • Loading branch information
betich committed Jun 25, 2024
1 parent 8ed7131 commit e227413
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/layouts/RootLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,19 @@ const { title, description } = Astro.props;
<!doctype html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-K6D4E9LNWK"
></script>
<script is:inline>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-K6D4E9LNWK");
</script>

<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
Expand Down

0 comments on commit e227413

Please sign in to comment.