modera/backend-google-analytics-bundle
A backend bundle for Modera applications that integrates Google Analytics into the admin panel, providing configuration and reporting widgets so teams can view traffic and site metrics alongside their existing management tools.
This package is a narrow instrument with one job: showing which parts of an internal admin/back office actually get used. It hooks Google Analytics pageview tracking into a Symfony-based admin panel, so internal staff behavior — not customer behavior — is recorded. For a PM, that unlocks a small but real set of decisions:
What it does not support: customer funnels, retention/cohort analysis, revenue attribution, or anything needing event-level granularity. Admin pageviews are a blunt instrument.
Flag up front: despite the "Laravel/PHP package" framing, this is a Symfony bundle from the Modera ecosystem — it cannot be composer required into a Laravel app and used as intended. Treat it as a reference implementation, not a dependency. Also assume it was written against Universal Analytics, which stopped processing hits in 2023; verify protocol before anyone assumes it works.
Adoption criteria — all should hold:
Look elsewhere — likely the right call — when:
UA-*, ga() / /collect); hits would land in a void with no error surfaced.For executives: We currently have no measurement of how our internal admin tools are used, so back-office roadmap decisions rest on opinion and the loudest voice. This package is a minimal way to get pageview-level visibility using analytics infrastructure we already pay for. But it is an unmaintained third-party component with zero adoption, it targets Symfony while our stack is Laravel, and it raises employee-monitoring and data-transfer questions that need legal sign-off. Recommendation: do not adopt it as a dependency. Fund a small first-party effort instead — self-hosted analytics or an internal events table plus a dashboard — which gives the same signal with better privacy posture and no maintenance liability. Budget days, not weeks. The decisions this unlocks — which admin features to invest in and which to retire — are worth considerably more than the build.
For engineering: Treat the repo as a reference implementation, not a dependency. The pattern is: hook the admin base layout, emit a pageview per admin route, attach a role or team dimension (never a raw email or record ID), and route to a sink we control. Concretely: ~1 sprint to stand up first-party admin event logging with a dashboard, behind a feature flag, queued off the request path, validated against GA4's debug endpoint if we go the GA4 Measurement Protocol route — with a documented answer on GA4-vs-self-hosted before anyone wires a tracker. Put the framework mismatch and the stale-UA risk in the ticket so "why not just install it" is closed out. Success criterion: we can answer "top 20 admin routes by weekly active users, last 90 days" without asking an engineer.
How can I help you explore Laravel packages today?