widop/google-analytics-bundle
Symfony bundle that simplifies Google Analytics integration. It provides configuration for your tracking ID and Twig helpers for rendering the analytics snippet, making page-view tracking easy to add with minimal setup.
Consider it when:
Look elsewhere when:
spatie/laravel-analytics or a direct client against google/analytics-data.To executives: This is a small, permissively licensed (MIT) Symfony bundle that enables server-side Google Analytics reporting with certificate-based authentication. It is useful as a fast prototype for internal reporting, but it is not a strategic dependency: it is niche (39 stars, no dependents), tied to an older Symfony generation, and likely targets pre-GA4 APIs. Recommendation: do not adopt for production without a funded replacement plan.
To engineering: Treat this as a reference implementation for service-account auth, not a library to build on. It solves unattended authentication cleanly, but it is Symfony2-specific and will not integrate with a Laravel codebase without adaptation. For a Laravel product, budget one to two sprints to build a thin connector on Google's official PHP client and the GA4 Data API, using this package's auth approach as a guide. Expect to own maintenance either way.
Bottom line: Valuable for a time-boxed spike or as design input; not recommended as a long-term platform choice.
How can I help you explore Laravel packages today?