Skip to content

Commit 3498166

Browse files
Merge pull request #29 from Eric-Zhang-Developer/feat/web-analytics
feat: vercel analytics
2 parents 26216e5 + 42fd12e commit 3498166

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13+
"@vercel/analytics": "^1.5.0",
1314
"lucide-react": "^0.515.0",
1415
"next": "15.2.3",
1516
"react": "^19.0.0",

src/app/layout.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "./globals.css";
22
import { Inter, Lora } from "next/font/google";
3+
import { Analytics } from "@vercel/analytics/next";
34

45
const inter = Inter({
56
subsets: ["latin"],
@@ -24,7 +25,10 @@ export default function RootLayout({
2425
}>) {
2526
return (
2627
<html lang="en">
27-
<body className={`${inter.variable} ${lora.variable}`}>{children}</body>
28+
<body className={`${inter.variable} ${lora.variable}`}>
29+
{children}
30+
<Analytics></Analytics>
31+
</body>
2832
</html>
2933
);
3034
}

0 commit comments

Comments
 (0)