Skip to content

Commit

Permalink
100% Definitely fixed google analytics this time
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewdr committed Nov 11, 2024
1 parent 7bff7e2 commit 9fac387
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 35 deletions.
18 changes: 9 additions & 9 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ import { Snow } from "../components/Snow.tsx";
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />

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

<title>{pageTitle}</title>
</head>

<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>

<body>
<Navigation />
<h1>{pageTitle}</h1>
Expand Down
16 changes: 7 additions & 9 deletions src/pages/blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@ import { Snow } from "../components/Snow.tsx";
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/x-icon" href="/elephant.jpg" />
<title>{pageTitle}</title>

<!-- Google tag (gtag.js) -->
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
</head>
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
<body>
<Navigation />
<h1>{pageTitle}</h1>
Expand Down
16 changes: 8 additions & 8 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ import { Snow } from "../components/Snow.tsx";
<meta name="generator" content={Astro.generator} />
<title>{pageTitle}</title>

<!-- Google tag (gtag.js) -->
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
</head>
<!-- Google tag (gtag.js) -->
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
<body>
<Navigation />
<h1>{pageTitle}</h1>
Expand Down
16 changes: 7 additions & 9 deletions src/pages/links.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ import { Snow } from "../components/Snow.tsx";
<meta name="viewport" content="width=device-width" />
<meta name="generator" content={Astro.generator} />
<title>{pageTitle}</title>

<!-- Google tag (gtag.js) -->
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
</head>
<script type="text/partytown" async src="https://www.googletagmanager.com/gtag/js?id=G-18TEL9N92D"></script>
<script type="text/partytown">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-18TEL9N92D');
</script>
<body>
<Navigation />
<h1>{pageTitle}</h1>
Expand Down

0 comments on commit 9fac387

Please sign in to comment.