From 0ca1d666d48741302c5b57962b59a76bbb4c97da Mon Sep 17 00:00:00 2001 From: Alaa Date: Thu, 8 Oct 2026 09:28:50 +0300 Subject: [PATCH 1/2] feat: integrate Google Analytics 4 on production site --- apps/web/src/app/layout.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/web/src/app/layout.tsx b/apps/web/src/app/layout.tsx index c2c8b43..4bf1a29 100644 --- a/apps/web/src/app/layout.tsx +++ b/apps/web/src/app/layout.tsx @@ -1,5 +1,6 @@ import type { Metadata } from "next"; import type { ReactNode } from "react"; +import Script from "next/script"; import "./globals.css"; import "./report.css"; @@ -43,7 +44,23 @@ export const metadata: Metadata = { export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) { return ( - {children} + + {children} + {process.env.NODE_ENV === "production" && ( + <> + + + )} + ); } From e37cf13266527a8d557e8f696d19eb785cd8a2ec Mon Sep 17 00:00:00 2001 From: Alaa Date: Thu, 8 Oct 2026 09:32:48 +0300 Subject: [PATCH 2/2] docs: normalize development commands formatting for CI --- docs/DEVELOPMENT.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md index c8c429f..9b090be 100644 --- a/docs/DEVELOPMENT.md +++ b/docs/DEVELOPMENT.md @@ -38,16 +38,14 @@ The web application and analysis packages are part of the current main branch. E ## Root commands -| Command | Purpose | -| ------------------- | -------------------------------------------------------- | -| `pnpm dev` | Run the web application locally. | -| `pnpm format` | Apply deterministic formatting. | -| `pnpm format:check` | Verify formatting without writing files. | -| `pnpm lint` | Run static lint checks. | -| `pnpm typecheck` | Type-check all workspaces that define the command. | -| `pnpm test` | Run the unit and application test suites. | -| `pnpm build` | Build all workspaces that define the command. | -| `pnpm verify` | Run every required local quality check. | +- `pnpm dev`: Run the web application locally. +- `pnpm format`: Apply deterministic formatting. +- `pnpm format:check`: Verify formatting without writing files. +- `pnpm lint`: Run static lint checks. +- `pnpm typecheck`: Type-check all workspaces that define the command. +- `pnpm test`: Run the unit and application test suites. +- `pnpm build`: Build all workspaces that define the command. +- `pnpm verify`: Run every required local quality check. ## Dependency rules