Skip to content

Commit 914ce5a

Browse files
Add Google Analytics G-LYNMNG6M7W
Co-authored-by: Ona <no-reply@ona.com>
1 parent 5ee5d10 commit 914ce5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface Props {
77
}
88
99
const { title, description = "33 chapters on context engineering, agent security, cost control, and team practices for building AI agent infrastructure in production." } = Astro.props;
10-
const gaId = import.meta.env.PUBLIC_GA_ID || "G-XXXXXXX";
10+
const gaId = import.meta.env.PUBLIC_GA_ID || "G-LYNMNG6M7W";
1111
const siteUrl = Astro.site?.toString().replace(/\/$/, "") || "";
1212
const base = import.meta.env.BASE_URL.replace(/\/$/, "");
1313
const canonicalUrl = `${siteUrl}${Astro.url.pathname}`;
@@ -45,7 +45,7 @@ const canonicalUrl = `${siteUrl}${Astro.url.pathname}`;
4545
<link rel="icon" href={`${base}/favicon.svg`} type="image/svg+xml" />
4646

4747
<!-- Google Analytics -->
48-
{gaId !== "G-XXXXXXX" && (
48+
{gaId && (
4949
<script async src={`https://www.googletagmanager.com/gtag/js?id=${gaId}`}></script>
5050
<script define:vars={{ gaId }}>
5151
window.dataLayer = window.dataLayer || [];

0 commit comments

Comments
 (0)