Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Google Analytics Bundle Laravel Package

hamaryuginh/google-analytics-bundle

hamaryuginh/google-analytics-bundle offers a simple way to integrate Google Analytics into PHP applications, with configuration and tracking helpers that reduce boilerplate. A lightweight choice for adding analytics wiring to your project.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

Short answer: almost none for a Laravel product — and that is itself the decision.

  • Vendor/framework fit: This is a Symfony2 bundle, not a Laravel package. Symfony bundles rely on Bundle classes, DependencyInjection extensions, and service-container YAML/XML config that Laravel's container does not consume. There is no ServiceProvider, no config/*.php, no facade. Adopting it in a Laravel codebase would mean porting it, not installing it.
  • Build vs. buy vs. reuse: This is not a "buy" candidate. With 4 stars and 0 dependents, there is no signal of production use. Treat it at most as a reference implementation — a source of ideas for how someone wired server-side analytics into a Symfony container — not a dependency.
  • Roadmap impact: None. Do not allocate roadmap capacity to evaluation, integration, or upgrade work here. If analytics is genuinely on the roadmap, the decision it drives is "which maintained GA4 library do we standardize on," and this package is not in that consideration set.
  • Legacy-context use case (the only real one): If your org still runs a Symfony 2.x application, this bundle could inform a scoped analytics migration — but Symfony 2 reached end of life years ago, so the surrounding platform risk dwarfs whatever value the bundle provides.
  • Analytics-era risk: The package wraps Google Analytics' Universal Analytics client-side tracking era (ga.js/analytics.js). Universal Analytics stopped processing hits in 2023; GA4 uses a different data model and the Measurement Protocol for server-side events. Any library built around the legacy snippet should be assumed to need rework before it produces usable data.

When to Consider This Package

Consider it only when all of the following hold:

  1. You maintain a Symfony 2.x application (not Laravel, not Symfony 5/6/7).
  2. You want a reading reference for bundle structure or GA wiring patterns, not a maintained dependency.
  3. You accept that you will fork and own the code — no upstream support, no security patching, no issue triage.
  4. The analytics requirement is internal, low-stakes, and tolerant of breakage.

Look elsewhere — decisively — if any of these apply:

  • You are on Laravel. Use a native package (e.g., spatie/laravel-analytics for GA4 reporting) or call the GA4 Measurement Protocol directly via Laravel's HTTP client. Both are first-class fits and actively maintained.
  • You need server-side event tracking. The Measurement Protocol is a documented HTTP contract; a thin, in-house wrapper is usually cheaper to own than an unmaintained bundle.
  • You need dashboards or reporting. Use the GA4 Data API through a maintained SDK, not a template-injection bundle.
  • You need anything audited, supported, or SLA-bound. Zero dependents and a single-maintainer history mean no viable support path.
  • You need modern GA4 semantics. Sessions, events, and consent-mode requirements are not what this package was built for.

Additional adoption criteria worth stating plainly: MIT license is a genuine plus (forking is unencumbered), but license permissiveness does not offset abandonment risk. A useful rule for the team — a dependency should have either active maintenance or a named internal owner; this has neither.

How to Pitch It (Stakeholders)

Recommendation: do not adopt. Reject from the Laravel dependency evaluation.

  • For executives: This package is a Symfony2 analytics bundle from the Universal Analytics era, with negligible community traction (4 stars, 0 dependents) and no maintenance signal. It does not run on Laravel. Adopting it would create a bespoke fork we would own indefinitely, for a capability we can get from a maintained library or ~1–2 days of in-house work against Google's documented Measurement Protocol. Net effect: reject; no budget, no roadmap slot.
  • For engineering: Two concerns, both disqualifying — framework mismatch (Symfony bundle vs. Laravel container) and GA-era mismatch (legacy snippet vs. GA4 Measurement Protocol). If analytics work is on the table, spike spatie/laravel-analytics for reporting and a thin Measurement Protocol client for server-side events; estimate the spike at a day or two. Keep this repo on a "reference only" list at most.
  • Risk framing to use in the write-up: Low upside, unbounded tail — abandoned code plus an end-of-life framework plus a sunset analytics API is a compounding maintenance liability disguised as a free dependency.
  • Decision to record: Not adopted — framework incompatibility and lack of maintenance. Standardize on a maintained GA4 approach; revisit only if a Symfony 2.x legacy system requires it, and then only as a fork with an assigned owner.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource