Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion apps/web/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -43,7 +44,23 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
return (
<html lang="en">
<body>{children}</body>
<body>
{children}
{process.env.NODE_ENV === "production" && (
<>
<Script
src="https://www.googletagmanager.com/gtag/js?id=G-04ZFM6GZTG"
strategy="afterInteractive"
/>
<Script id="google-analytics" strategy="afterInteractive">{`
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());
gtag("config", "G-04ZFM6GZTG");
`}</Script>
</>
)}
</body>
</html>
);
}
18 changes: 8 additions & 10 deletions docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading