Server-side Google Analytics
A historical PHP walkthrough of Universal Analytics Measurement Protocol, preserved with clear guidance to use the current GA4 protocol today.
Loading...
Topic
PHP notes from building and running real, long-lived production systems.
A historical PHP walkthrough of Universal Analytics Measurement Protocol, preserved with clear guidance to use the current GA4 protocol today.
A practical guide to application configuration: keep deploy-specific values out of code, parse and validate configuration at startup, make precedence explicit, and treat secrets as secrets.
PHP CLI can read environment variables directly, but PHP-FPM intentionally clears worker environments by default. Here is how to pass only the variables your application actually needs.