feat: Add Analytics component with Umami and Clarity support
- Add Analytics.tsx component for tracking with Umami (self-hosted) and Microsoft Clarity - Update layout.tsx to include Analytics component - Environment variables: NEXT_PUBLIC_UMAMI_WEBSITE_ID, NEXT_PUBLIC_CLARITY_ID Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import type { Metadata } from 'next'
|
||||
import { Inter } from 'next/font/google'
|
||||
import './globals.css'
|
||||
import ClientLayout from '@/components/ClientLayout'
|
||||
import Analytics from '@/components/Analytics'
|
||||
|
||||
const inter = Inter({ subsets: ['latin'] })
|
||||
|
||||
@@ -21,6 +22,7 @@ export default function RootLayout({
|
||||
<ClientLayout>
|
||||
{children}
|
||||
</ClientLayout>
|
||||
<Analytics />
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user