Skip to content

Commit 3b46c00

Browse files
committed
feat: add vercel analytics
1 parent 72232e7 commit 3b46c00

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

app/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import React from "react";
33
import Clown from "./clown/clown";
44
import {Metadata} from "next";
55
import DefaultNavbar from "./common/defaultNavbar";
6+
import { Analytics } from '@vercel/analytics/react';
67

78
export const metadata: Metadata = {
89
title: 'Unitystation - The Space Station 13 Remake Made in Unity',
@@ -45,6 +46,7 @@ export default function RootLayout({children,}: { children: React.ReactNode; })
4546
<Clown/>
4647
<DefaultNavbar/>
4748
{children}
49+
<Analytics />
4850
</body>
4951
</html>
5052
)

package-lock.json

Lines changed: 6 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
@@ -15,6 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@types/ua-parser-js": "^0.7.36",
18+
"@vercel/analytics": "^1.0.1",
1819
"classnames": "^2.3.2",
1920
"flowbite": "^1.7.0",
2021
"flowbite-react": "^0.4.11",

0 commit comments

Comments
 (0)