Skip to content

Commit 929fe25

Browse files
committed
feat: add vercel analytics
- Added @vercel/analytics to track website usage and performance. - Included the Analytics component in the root layout to enable tracking on all pages.
1 parent 1225cdb commit 929fe25

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "eslint"
1010
},
1111
"dependencies": {
12+
"@vercel/analytics": "^1.5.0",
1213
"class-variance-authority": "^0.7.1",
1314
"clsx": "^2.1.1",
1415
"lucide-react": "^0.542.0",

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
@@ -6,6 +6,7 @@ import { ppNeueMontreal, ppNeueMontrealMono } from "../lib/fonts";
66
import "./globals.css";
77
import { Footer } from "@/components/footer";
88
import Drawer from "@/components/drawer/drawer";
9+
import { Analytics } from "@vercel/analytics/next";
910

1011
export const metadata: Metadata = {
1112
title: "Taehoon Lee",
@@ -37,6 +38,7 @@ const Layout = ({ children, aside }: LayoutProps) => {
3738
lang="en"
3839
className={`${ppNeueMontreal.variable} ${ppNeueMontrealMono.variable}`}
3940
>
41+
<Analytics />
4042
<body>
4143
<HighlighterProvider>
4244
<ProjectContextProvider>

0 commit comments

Comments
 (0)