Skip to content

Commit a207517

Browse files
Ajit Pratap Singhclaude
authored andcommitted
fix(analytics): add missing Analytics component to layout
@vercel/analytics was installed but <Analytics /> was never rendered, causing 0 data collection. Adds the component from @vercel/analytics/next for App Router compatibility. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 28d8cc4 commit a207517

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

website/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { instrumentSans, jetbrainsMono } from '@/lib/fonts';
33
import { Navbar } from '@/components/layout/Navbar';
44
import { Footer } from '@/components/layout/Footer';
55
import { ServiceWorkerRegister } from '@/components/ServiceWorkerRegister';
6+
import { Analytics } from '@vercel/analytics/next';
67
import './globals.css';
78

89
export const metadata: Metadata = {
@@ -91,6 +92,7 @@ export default function RootLayout({
9192
<main id="main-content" className="pt-16">{children}</main>
9293
<Footer />
9394
<ServiceWorkerRegister />
95+
<Analytics />
9496
</body>
9597
</html>
9698
);

0 commit comments

Comments
 (0)