diff --git a/src/website2/src/app/layout.tsx b/src/website2/src/app/layout.tsx index 32a9726c13..bffd1374e6 100644 --- a/src/website2/src/app/layout.tsx +++ b/src/website2/src/app/layout.tsx @@ -39,14 +39,18 @@ export default async function RootLayout({ children: ReactNode; }) { const maintenance = await checkMaintenance(); - const GA_MEASUREMENT_ID = process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID || ''; + // const GA_MEASUREMENT_ID = process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID || ''; return ( + {/* Initialize & Track Google Analytics only on the client */} + }> + + {maintenance.isActive ? ( ) : ( @@ -58,11 +62,6 @@ export default async function RootLayout({ - - {/* Initialize & Track Google Analytics only on the client */} - {GA_MEASUREMENT_ID && ( - - )} );