Skip to content

Commit a71c439

Browse files
committed
feat/analytics: add vercel analytics feature
1 parent e607328 commit a71c439

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

apps/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"@radix-ui/react-label": "^2.1.0",
2020
"@radix-ui/react-radio-group": "^1.2.1",
2121
"@radix-ui/react-slot": "^1.1.0",
22+
"@vercel/analytics": "^1.4.1",
2223
"class-variance-authority": "^0.7.0",
2324
"clsx": "^2.1.1",
2425
"framer-motion": "^11.11.13",

apps/web/src/app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
22
import localFont from "next/font/local";
33
import "./globals.css";
44
import { ThemeProvider } from "./theme-provider";
5+
import { Analytics } from "@vercel/analytics/react";
56

67
const geistSans = localFont({
78
src: "./fonts/GeistVF.woff",
@@ -37,6 +38,7 @@ export default function RootLayout({
3738
>
3839
{children}
3940
</ThemeProvider>
41+
<Analytics />
4042
</body>
4143
</html>
4244
);

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.

0 commit comments

Comments
 (0)