Skip to content

Commit c616b79

Browse files
committed
Add @vercel/analytics package and integrate analytics component in App.js
1 parent 04a4d6b commit c616b79

File tree

3 files changed

+44
-55
lines changed

3 files changed

+44
-55
lines changed

package-lock.json

Lines changed: 41 additions & 55 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
@@ -13,6 +13,7 @@
1313
"@testing-library/jest-dom": "^6.6.4",
1414
"@testing-library/react": "^16.0.1",
1515
"@testing-library/user-event": "^14.5.2",
16+
"@vercel/analytics": "^1.5.0",
1617
"canvas-confetti": "^1.9.3",
1718
"cobe": "^0.6.3",
1819
"devdisplay": "file:",

src/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import React from 'react';
33
import { BrowserRouter, Routes, Route } from 'react-router-dom';
44
import { Helmet } from 'react-helmet';
5+
import { Analytics } from '@vercel/analytics/react';
56
import Homepage from './Homepage';
67
// Introducing DevDisplay
78
import Home from './Page/Home.jsx';
@@ -63,6 +64,7 @@ function App() {
6364

6465
return (
6566
<BrowserRouter>
67+
<Analytics />
6668
<Helmet>
6769
<title>DevDisplay - Paradise for developers</title>
6870
<meta name="description" content="The First Global Platform for Developers to Fulfill All Their Tech Needs." />

0 commit comments

Comments
 (0)