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:
AutonetSellCar Deploy
2026-02-08 20:14:36 +09:00
parent 346018c4fb
commit fb3f3f6127
2 changed files with 47 additions and 0 deletions

View File

@@ -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>
)