refactor(analytics): centralize landing page Umami tracking via env vars

Replace hardcoded Umami website IDs in all 10 Astro landing pages with
import.meta.env.PUBLIC_UMAMI_WEBSITE_ID, following the same pattern
as the web apps.

- Add UMAMI_WEBSITE_ID_*_LANDING vars for all 10 landings in .env.development
- Add landing page configs to generate-env.mjs
- Replace hardcoded IDs with env var in 7 existing Layout.astro files
- Add Umami tracking to 3 missing landings (NutriPhi, Presi, Mukke)
- Fix Todo Landing invalid ID ("todo-landing" -> proper UUID)
- Update ANALYTICS.md with new landing page IDs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-22 19:03:02 +01:00
parent f5ee3aae20
commit cc9679dc9f
13 changed files with 216 additions and 25 deletions

View file

@ -24,6 +24,17 @@ const { title, description = 'NutriPhi - KI-gestützte Ernährungsanalyse per Fo
<!-- Theme Color -->
<meta name="theme-color" content="#22C55E" />
<!-- Umami Analytics -->
{
import.meta.env.PUBLIC_UMAMI_WEBSITE_ID && (
<script
defer
src="https://stats.mana.how/script.js"
data-website-id={import.meta.env.PUBLIC_UMAMI_WEBSITE_ID}
/>
)
}
</head>
<body class="bg-[#0F1F0F] text-gray-100 antialiased">
<slot />