Skip to content

The only tool you need to know what is happening and how to fix it.

added google analytics tag

dduxdfb51bbf066e
diff --git a/website/app/layout.tsx b/website/app/layout.tsx
index f6453066..d6f22d12 100644
--- a/website/app/layout.tsx
+++ b/website/app/layout.tsx
@@ -2,6 +2,7 @@ import { SiteHeader } from "@/components/site-header";
import { SiteFooter } from "@/components/site-footer";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
+import Script from "next/script";
import "./globals.css";
const geistSans = Geist({
@@ -33,6 +34,18 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
+ <Script
+ src="https://www.googletagmanager.com/gtag/js?id=G-KSB465GF2W"
+ strategy="afterInteractive"
+ />
+ <Script id="gtag-init" strategy="afterInteractive">
+ {`
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-KSB465GF2W');
+ `}
+ </Script>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
>