Skip to content

Commit 434f68f

Browse files
jnarowskiclaude
andcommitted
Add Google Analytics to website
Installed @next/third-parties and added GoogleAnalytics component to root layout with measurement ID G-J3F8EM1T92. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8afeb1c commit 434f68f

3 files changed

Lines changed: 23 additions & 0 deletions

File tree

apps/website/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from "next";
22
import { Geist, Geist_Mono } from "next/font/google";
3+
import { GoogleAnalytics } from "@next/third-parties/google";
34
import { RootProvider } from "fumadocs-ui/provider/next";
45
import { ThemeProvider } from "@/components/theme-provider";
56
import { Toaster } from "@/components/ui/sonner";
@@ -51,6 +52,7 @@ export default function RootLayout({
5152
<body
5253
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
5354
>
55+
<GoogleAnalytics gaId="G-J3F8EM1T92" />
5456
<ThemeProvider
5557
attribute="class"
5658
defaultTheme="dark"

apps/website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
},
1919
"dependencies": {
2020
"@hookform/resolvers": "^5.2.2",
21+
"@next/third-parties": "^16.0.10",
2122
"@radix-ui/react-icons": "^1.3.2",
2223
"@radix-ui/react-label": "^2.1.8",
2324
"@radix-ui/react-slot": "^1.2.4",

pnpm-lock.yaml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)