Files
nibiru-framework.com/docs/astro.config.mjs
stephan ab897b8a81 Wire Google Analytics 4 (G-V8QWB45G6X) alongside Umami
Adds gtag.js to the production head so Search Console can cross-reference
GA traffic. Same gating as Umami — production builds only, never injected
on dev. Three head entries:

  1. Umami (kept) — self-hosted, DNT-aware, GDPR-light
  2. Google's gtag loader (async)
  3. Inline init: window.dataLayer + gtag('config', 'G-V8QWB45G6X')

Both analytics run side-by-side; pick one or both in the GA dashboard.
A GDPR consent banner is not added — configure IP anonymisation +
consent mode v2 in the GA property settings if you intend to serve EU
visitors without explicit cookie acceptance.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 20:02:45 +02:00

13 KiB