Skip to content

Commit fdb0983

Browse files
authored
Merge pull request #4 from adamplesnik/feature/vercel-analytics
Add Vercel analytics
2 parents 1a135b2 + 11e5b31 commit fdb0983

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
]
2020
},
2121
"dependencies": {
22+
"@vercel/analytics": "^1.2.2",
2223
"framer-motion": "^11.0.24",
2324
"lucide-react": "^0.363.0",
2425
"prismjs": "^1.29.0",

Diff for: src/layouts/Page.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ScrollRestoration } from 'react-router-dom'
33
import PageBackground from '../components/PageBackground'
44
import Nav from '../partials/Nav'
55
import Footer from '../partials/Footer'
6+
import { Analytics } from '@vercel/analytics/react'
67

78
function Page({ children }: PropsWithChildren<PageProps>) {
89
return (
@@ -14,6 +15,7 @@ function Page({ children }: PropsWithChildren<PageProps>) {
1415
<Footer />
1516
</div>
1617
<ScrollRestoration />
18+
<Analytics />
1719
</div>
1820
)
1921
}

0 commit comments

Comments
 (0)