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.
13 lines
431 B
TypeScript
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>
|
|
);
|
|
}
|