Skip to content

Commit 692a82d

Browse files
Merge pull request #28 from OpencodeNIT-R/vercel/vercel-web-analytics-integrati-giwy4o
Add Vercel Web Analytics integration
2 parents 359aaeb + e986936 commit 692a82d

3 files changed

Lines changed: 49 additions & 1 deletion

File tree

‎package-lock.json‎

Lines changed: 43 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
@@ -13,6 +13,7 @@
1313
},
1414
"dependencies": {
1515
"@supabase/supabase-js": "^2.117.2",
16+
"@vercel/analytics": "^2.0.1",
1617
"gsap": "^3.15.0",
1718
"imagekit": "^6.0.0",
1819
"next": "16.3.8",

‎src/app/layout.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata, Viewport } from "next";
22
import { DM_Serif_Display, Manrope } from "next/font/google";
3+
import { Analytics } from "@vercel/analytics/next";
34
import { INDEXABLE, SITE_DESCRIPTION, SITE_NAME, SITE_TITLE, SITE_URL } from "@/config/site";
45
import { TITLE_TEMPLATE } from "@/lib/seo";
56
import "./globals.css";
@@ -43,7 +44,10 @@ export const viewport: Viewport = {
4344
export default function RootLayout({ children }: LayoutProps<"/">) {
4445
return (
4546
<html lang="en" className={`${dmSerif.variable} ${manrope.variable}`}>
46-
<body>{children}</body>
47+
<body>
48+
{children}
49+
<Analytics />
50+
</body>
4751
</html>
4852
);
4953
}

0 commit comments

Comments
 (0)