/** * Opt-in analytics injection for SSR streams. * Supported environment variables: * - `GA_MEASUREMENT_ID` — Google Analytics 4 measurement ID * - `GTM_CONTAINER_ID` — Google Tag Manager web container ID * * Netlify configuration-file env vars are build-time only for serverless * functions, so the Vite/Nitro build paths also bake this public value into * SSR bundles. * * Amplitude and Sentry are initialized client-side via their npm packages * (see `packages/core/src/client/analytics.ts`). GTM and GA require script * tag injection because their loaders must be `