The marketing site counts visits, behind consent

countbean.com now counts visits through GA4 behind a consent banner, with the measurement id read from one file at build time so a renamed property cannot leave the site reporting into nowhere.

GA4 on countbean.com, gated on a consent banner, with the measurement id read from exactly one file at build time so a renamed property cannot leave the site reporting green into nowhere.

The init lives in /analytics.js on our own origin rather than in an inline block, because the site’s CSP is script-src 'self' with no unsafe-inline. An inline gtag would be refused silently: the page renders perfectly and the property stays at zero.