Skip to content

Commit 3c6322b

Browse files
authored
Merge pull request #1 from MujahidAbbas/vercel/vercel-web-analytics-to-astro-rpw0dl
Add Vercel Web Analytics to Astro
2 parents 4667c25 + 810c883 commit 3c6322b

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

package-lock.json

Lines changed: 39 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
@@ -16,6 +16,7 @@
1616
"@tailwindcss/vite": "^4.1.18",
1717
"@types/react": "^19.2.8",
1818
"@types/react-dom": "^19.2.3",
19+
"@vercel/analytics": "^1.6.1",
1920
"@vercel/speed-insights": "^1.3.1",
2021
"astro": "^5.16.9",
2122
"astro-icon": "^1.1.5",

src/layouts/Layout.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import SpeedInsights from '@vercel/speed-insights/astro';
3+
import Analytics from '@vercel/analytics/astro';
34
45
interface Props {
56
title: string;
@@ -25,6 +26,8 @@ const { title, description = 'AI-powered background removal. 100% private, runs
2526
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap"
2627
rel="stylesheet"
2728
/>
29+
30+
<Analytics />
2831
</head>
2932
<body class="min-h-screen bg-white text-gray-900 font-sans antialiased">
3033
<slot />

0 commit comments

Comments
 (0)