Skip to content

Commit 06af50a

Browse files
Codestzclaude
andcommitted
feat: add Vercel Analytics tracking
- Install @vercel/analytics package - Add Analytics component to root layout - Track page views and Web Vitals automatically - Update README to remove deleted TableOfContents reference Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent b085a2f commit 06af50a

4 files changed

Lines changed: 37 additions & 1 deletion

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ portfolio/
125125
│ │ │ ├── SkillsBreakdown/ # Tech stack showcase
126126
│ │ │ └── BeyondCode/ # Personal interests
127127
│ │ ├── blog/ # Blog-specific components
128-
│ │ │ ├── TableOfContents/ # Auto-generated TOC
129128
│ │ │ └── PostNavigation/ # Prev/next post links
130129
│ │ ├── layout/ # Layout components
131130
│ │ │ ├── Header/ # Navigation header with animations

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@next/mdx": "^16.1.6",
2727
"@types/mdx": "^2.0.13",
2828
"@types/react-syntax-highlighter": "^15.5.13",
29+
"@vercel/analytics": "^1.6.1",
2930
"clsx": "^2.1.1",
3031
"fuse.js": "^7.1.0",
3132
"gray-matter": "^4.0.3",

pnpm-lock.yaml

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

src/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 { Syne, Space_Mono } from 'next/font/google';
3+
import { Analytics } from '@vercel/analytics/react';
34
import { ThemeProvider } from '@/components/providers';
45
import { Header, Footer } from '@/components/layout';
56
import { APP_CONFIG } from '@/lib/constants';
@@ -42,6 +43,7 @@ export default function RootLayout({
4243
<main className="min-h-[calc(100vh-200px)]">{children}</main>
4344
<Footer />
4445
</ThemeProvider>
46+
<Analytics />
4547
</body>
4648
</html>
4749
);

0 commit comments

Comments
 (0)