Skip to content

Commit 986f220

Browse files
authored
Merge pull request #107 from iitzIrFan/main
feat: add @vercel/analytics dependency and implement analytics in Root component
2 parents 1afd97d + dd6dc72 commit 986f220

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"@radix-ui/react-slot": "^1.2.0",
3030
"@tsparticles/react": "^3.0.0",
3131
"@tsparticles/slim": "^3.8.1",
32+
"@vercel/analytics": "^1.5.0",
3233
"class-variance-authority": "^0.7.1",
3334
"clsx": "^2.1.1",
3435
"dotenv": "^16.5.0",

src/theme/Root.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from 'react';
2+
import { Analytics } from '@vercel/analytics/react';
3+
4+
// Default implementation, that you can customize
5+
export default function Root({children}) {
6+
return (
7+
<>
8+
{children}
9+
<Analytics />
10+
</>
11+
);
12+
}

0 commit comments

Comments
 (0)