plano/apps/www/src/app/layout.tsx
2025-12-24 11:03:56 -08:00

39 lines
1.2 KiB
TypeScript

import type { Metadata } from "next";
import Script from "next/script";
import "@katanemo/shared-styles/globals.css";
import { Analytics } from "@vercel/analytics/next";
import { ConditionalLayout } from "@/components/ConditionalLayout";
export const metadata: Metadata = {
title: "Plano - Delivery Infrastructure for Agentic Apps",
description:
"Build agents faster, and deliver them reliably to production - by offloading the critical plumbing work to Plano!",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className="antialiased">
{/* Google tag (gtag.js) */}
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-ML7B1X9HY2"
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">
{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-ML7B1X9HY2');
`}
</Script>
<ConditionalLayout>{children}</ConditionalLayout>
<Analytics />
</body>
</html>
);
}