Skip to content

Commit ea574f2

Browse files
committed
add: vercel analytics
1 parent 7b60234 commit ea574f2

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-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
@@ -14,6 +14,7 @@
1414
"@types/node": "18.16.1",
1515
"@types/react": "18.2.0",
1616
"@types/react-dom": "18.2.1",
17+
"@vercel/analytics": "^1.3.1",
1718
"@vercel/speed-insights": "^1.0.9",
1819
"autoprefixer": "10.4.14",
1920
"eslint": "8.39.0",

pages/[[...docId]].tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { EditJsonCardHolder } from "@/components/holders/modal/EditJsonCard";
77
import { useRouter } from "next/router";
88
import { ThemeObserver } from "@/components/holders/ThemeObserver";
99
import { SpeedInsights } from "@vercel/speed-insights/next"
10+
import { Analytics } from "@vercel/analytics/react"
1011

1112
export default function Home() {
1213
const router = useRouter();
@@ -26,6 +27,7 @@ export default function Home() {
2627
<EditJsonCardHolder />
2728
<ThemeObserver />
2829
<SpeedInsights />
30+
<Analytics />
2931
</Layout>
3032
)
3133
}

0 commit comments

Comments
 (0)