Skip to content

Commit

Permalink
feat: add vercel analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 committed Jul 19, 2023
1 parent 72232e7 commit 3b46c00
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from "react";
import Clown from "./clown/clown";
import {Metadata} from "next";
import DefaultNavbar from "./common/defaultNavbar";
import { Analytics } from '@vercel/analytics/react';

export const metadata: Metadata = {
title: 'Unitystation - The Space Station 13 Remake Made in Unity',
Expand Down Expand Up @@ -45,6 +46,7 @@ export default function RootLayout({children,}: { children: React.ReactNode; })
<Clown/>
<DefaultNavbar/>
{children}
<Analytics />
</body>
</html>
)
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"dependencies": {
"@types/ua-parser-js": "^0.7.36",
"@vercel/analytics": "^1.0.1",
"classnames": "^2.3.2",
"flowbite": "^1.7.0",
"flowbite-react": "^0.4.11",
Expand Down

1 comment on commit 3b46c00

@vercel
Copy link

@vercel vercel bot commented on 3b46c00 Jul 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.