Skip to content

Commit 40b5f22

Browse files
committed
feat: add Vercel analytics integration
1 parent 1b0af65 commit 40b5f22

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Montserrat } from "next/font/google"
44
import "./globals.css"
55
import { ThemeProvider } from "@/components/theme-provider"
66
import { Toaster } from 'sonner'
7+
import { Analytics } from "@vercel/analytics/next"
78

89
const inter = Montserrat({ subsets: ["latin"] })
910

@@ -66,6 +67,7 @@ export default function RootLayout({
6667
<body className={inter.className}>
6768
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem disableTransitionOnChange>
6869
{children}
70+
<Analytics />
6971
<Toaster richColors />
7072
</ThemeProvider>
7173
</body>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@radix-ui/react-toggle-group": "1.1.1",
3939
"@radix-ui/react-tooltip": "1.1.6",
4040
"@tailwindcss/postcss": "^4.1.11",
41+
"@vercel/analytics": "^1.5.0",
4142
"autoprefixer": "^10.4.20",
4243
"class-variance-authority": "^0.7.1",
4344
"clsx": "^2.1.1",

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.

0 commit comments

Comments
 (0)