Skip to content

Commit 90001da

Browse files
feat: add Vercel Analytics to the UI
Enable page view tracking on deployed Vercel builds. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 4009f2f commit 90001da

3 files changed

Lines changed: 51 additions & 1 deletion

File tree

ui/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.

ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"@radix-ui/react-slot": "^1.2.3",
2323
"@radix-ui/react-switch": "^1.2.6",
2424
"@supabase/supabase-js": "^2.57.4",
25+
"@vercel/analytics": "^2.0.1",
2526
"class-variance-authority": "^0.7.1",
2627
"clsx": "^2.1.1",
2728
"lucide-react": "^0.577.0",

ui/src/App.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
import { Analytics } from '@vercel/analytics/react'
12
import { AppShell } from './components/shell/AppShell'
23

34
function App() {
4-
return <AppShell />
5+
return (
6+
<>
7+
<AppShell />
8+
<Analytics />
9+
</>
10+
)
511
}
612

713
export default App

0 commit comments

Comments
 (0)