diff --git a/dashboard/app/layout.jsx b/dashboard/app/layout.jsx index 2cf406f..cc5860d 100644 --- a/dashboard/app/layout.jsx +++ b/dashboard/app/layout.jsx @@ -2,6 +2,7 @@ import PolicyEngineFooter from "../src/components/PolicyEngineFooter"; import PolicyEngineHeader from "../src/components/PolicyEngineHeader"; import "./globals.css"; +import Script from "next/script"; export const metadata = { title: "£2 bus fare cap analysis | PolicyEngine", @@ -16,6 +17,21 @@ export default function RootLayout({ children }) { {children} + {/* Google Analytics: policyengine.org's GA4 property; this app is served at policyengine.org/uk/bus-fare-cap through a rewrite, where the main site's GA does not reach. */} + {process.env.NODE_ENV === "production" && ( + <> + + + )} );