Skip to content

Commit

Permalink
Add Analytics component to RootLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsanghaffar committed May 26, 2024
1 parent 6ab109a commit a17cfa8
Showing 1 changed file with 2 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 '@/styles/globals.css';
import Footer from '@/components/Footer';
import { Toaster } from '@/components/ui/sonner';
import { Metadata } from 'next';
import { Analytics } from "@vercel/analytics/react"

type Props = {
params: { id: string }
Expand Down Expand Up @@ -47,6 +48,7 @@ export default function RootLayout({
<Footer />
</footer>
<Toaster richColors />
<Analytics />
</body>
</html>
)
Expand Down

0 comments on commit a17cfa8

Please sign in to comment.