Skip to content

Commit 27c8dcf

Browse files
committed
Added vercel analytics
1 parent 33ff9fd commit 27c8dcf

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"@types/node": "18.14.2",
1313
"@types/react": "18.0.28",
1414
"@types/react-dom": "18.0.11",
15+
"@vercel/analytics": "^0.1.11",
1516
"canvas-confetti": "^1.6.0",
1617
"date-fns": "^2.29.3",
1718
"eslint": "8.35.0",

pages/_app.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ import Layouts from "@/components/Layouts";
22
import "@/styles/globals.css";
33
import type { AppProps } from "next/app";
44
import { AnimatePresence } from "framer-motion";
5+
import { Analytics } from "@vercel/analytics/react";
56

67
export default function App({ Component, pageProps, router }: AppProps) {
78
return (
89
<Layouts>
910
<AnimatePresence mode="wait">
1011
<Component {...pageProps} key={router.pathname} />
12+
<Analytics />
1113
</AnimatePresence>
1214
</Layouts>
1315
);

pnpm-lock.yaml

Lines changed: 10 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)