Skip to content

Commit 2a4c39a

Browse files
Merge pull request #18 from SparshGarg999/vercel/vercel-web-analytics-to-projec-tkccdp
Add Vercel Web Analytics to project
2 parents c5bf554 + 88e08fe commit 2a4c39a

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

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

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
},
1212
"dependencies": {
1313
"@tailwindcss/vite": "^4.3.0",
14+
"@vercel/analytics": "^2.0.1",
1415
"chart.js": "^4.5.1",
1516
"lucide-react": "^1.16.0",
1617
"ogl": "^1.0.11",

frontend/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React, { useState, useCallback } from 'react';
22
import { Routes, Route, useLocation } from 'react-router-dom';
3+
import { Analytics } from '@vercel/analytics/react';
34
import Navbar from './components/Shared/Navbar';
45
import LandingNavbar from './components/Shared/LandingNavbar';
56
import ToastContainer from './components/Shared/ToastContainer';
@@ -56,6 +57,7 @@ export default function App() {
5657
<a href="/privacy" className="hover:text-indigo-400 transition-colors">Privacy Policy</a>
5758
</div>
5859
</footer>
60+
<Analytics />
5961
</div>
6062
);
6163
}

0 commit comments

Comments
 (0)