- 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>
30 lines
675 B
TypeScript
30 lines
675 B
TypeScript
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'] })
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'AutonetSellCar - Korea Used Car Export',
|
|
description: 'Premium Korean used cars for Mongolia',
|
|
}
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body className={inter.className}>
|
|
<ClientLayout>
|
|
{children}
|
|
</ClientLayout>
|
|
<Analytics />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|