Connect admin dashboard to Cloudflare analytics
All checks were successful
/ deploy (push) Successful in 46s

This commit is contained in:
Loyyd 2026-07-10 12:18:29 +02:00
parent b8cd4f0789
commit 3c29cc5192
4 changed files with 25 additions and 20 deletions

View file

@ -44,9 +44,13 @@ workflow passes them into the Astro build.
## Analytics
Set `PUBLIC_PLAUSIBLE_DOMAIN=familyfed.ie` to load Plausible analytics on the
public site. If using a self-hosted Plausible instance, set
`PUBLIC_PLAUSIBLE_SCRIPT_SRC` to the script URL.
Cloudflare Web Analytics is enabled for the proxied `familyfed.ie` zone. It
automatically injects its beacon at the Cloudflare edge, so the Astro build does
not need a tracking token or script.
Set `PUBLIC_ANALYTICS_DASHBOARD_URL` to the analytics dashboard URL so the admin
page can link directly to visitor reports.
The admin dashboard links to Cloudflare Web Analytics by default. Set
`PUBLIC_ANALYTICS_DASHBOARD_URL` only to override that destination.
Plausible remains available as an optional additional provider. Set
`PUBLIC_PLAUSIBLE_DOMAIN=familyfed.ie` to load its tracking script, and set
`PUBLIC_PLAUSIBLE_SCRIPT_SRC` when using a self-hosted Plausible instance.