1
0
Fork 0
polaris-task-force/src/app/login/layout.tsx
Z8MB1E 4845084c1c feat(analytics): add Microsoft Clarity analytics
Add usage analytics via @microsoft/clarity across the frontend app and the
login page. ClarityAnalytics loads the tracking script only in production
builds (never local dev), keyed by NEXT_PUBLIC_CLARITY_ID; unset disables it.
Mounts it in both the (frontend) root layout and the standalone login layout
so both surfaces are covered without touching the admin panel.
2026-10-01 10:04:45 -04:00

13 lines
431 B
TypeScript

import "@/app/(frontend)/styles.css";
import { ClarityAnalytics } from "@/components/frontend/analytics/ClarityAnalytics";
export default function LoginLayout(props: { children: React.ReactNode }) {
return (
<html lang="en" className="bg-black leading-8 antialiased h-full dark">
<body className="h-full font-sans m-0 text-white">
{props.children}
<ClarityAnalytics />
</body>
</html>
);
}