Skip to content

Commit ade4310

Browse files
feat: add analytics
1 parent 0186cf4 commit ade4310

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

app/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import "./globals.css";
22

3+
import { Analytics } from "@vercel/analytics/next";
4+
import { SpeedInsights } from "@vercel/speed-insights/next";
35
import type { Metadata } from "next";
46
import { Geist, Geist_Mono } from "next/font/google";
57
import type { ReactNode } from "react";
@@ -30,6 +32,8 @@ export default function RootLayout({
3032
className={`font-sans antialiased text-foreground ${geist.className} ${geistMono.className}`}
3133
>
3234
{children}
35+
<Analytics />
36+
<SpeedInsights />
3337
</body>
3438
</html>
3539
);

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"@radix-ui/react-toggle-group": "1.1.11",
5353
"@radix-ui/react-tooltip": "1.2.8",
5454
"@vercel/analytics": "1.6.1",
55+
"@vercel/speed-insights": "^2.0.0",
5556
"autoprefixer": "^10.4.20",
5657
"class-variance-authority": "^0.7.1",
5758
"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)