Skip to content

Commit

Permalink
Implement vercel analytics (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-ao authored Nov 30, 2024
1 parent 20f0dc7 commit 35d3692
Show file tree
Hide file tree
Showing 3 changed files with 41 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 './globals.css';
import Navbar from '@/components/all/Navbar';
import Footer from '@/components/all/Footer';
import SessionWrapper from '@/lib/auth/SessionWrapper';
import { Analytics } from "@vercel/analytics/react"

// TODO: add favicon, and maybe dynamic title and description based on page
export const metadata: Metadata = {
Expand All @@ -19,6 +20,7 @@ export default function RootLayout({
<html lang="nb">
<head>
<link rel="icon" href="public/icon-256.png" sizes="any" />
<Analytics />
</head>
<body className="antialiased">
<SessionWrapper>
Expand Down
38 changes: 38 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 @@ -13,6 +13,7 @@
"dependencies": {
"@prisma/client": "^5.20.0",
"@supabase/supabase-js": "^2.45.4",
"@vercel/analytics": "^1.4.1",
"chart.js": "^4.4.5",
"clsx": "^2.1.1",
"framer-motion": "^11.5.4",
Expand Down

0 comments on commit 35d3692

Please sign in to comment.