Skip to content

Commit

Permalink
Add vercel analytics (#141)
Browse files Browse the repository at this point in the history
* chore: move license to root

* feat(analytics): add vercel analytics

closes #95

---------

Co-authored-by: Amar Čerim <[email protected]>
  • Loading branch information
EnisMulic and bambooch authored Oct 25, 2024
1 parent 263dc8c commit cd802fb
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 11 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toast": "^1.2.2",
"@uidotdev/usehooks": "^2.4.1",
"@vercel/analytics": "^1.3.1",
"axios": "^1.7.5",
"busez": "file:",
"class-variance-authority": "^0.7.0",
Expand Down
24 changes: 13 additions & 11 deletions frontend/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata } from "next";
import { Analytics } from "@vercel/analytics/react";
import "./globals.css";
import { Providers } from "./providers";
import Footer from "./components/Footer";
Expand All @@ -15,16 +16,17 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="en" className="dark">
<body className="flex flex-col min-h-screen">
<div>
<Providers>
<main>{children}</main>
<Toaster />
</Providers>
</div>
<Footer />
</body>
</html>
<html lang="en" className="dark">
<body className="flex flex-col min-h-screen">
<div>
<Providers>
<main>{children}</main>
<Toaster />
</Providers>
</div>
<Footer />
<Analytics />
</body>
</html>
);
}
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit cd802fb

Please sign in to comment.