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

Laravel Gamp Laravel Package

irazasyed/laravel-gamp

Laravel GAMP is a Laravel wrapper for Google Analytics Measurement Protocol, enabling server-side tracking of events, page views, and ecommerce transactions. It offers a simple, fluent API to send analytics hits from your backend without client-side JavaScript.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Server-side analytics capture. The package sends Google Analytics Measurement Protocol hits from Laravel backend code — useful for events the browser can't be trusted to fire: completed purchases, webhook-driven subscription changes, backend-only signups, and flows where ad blockers or ITP suppress client-side gtag.
  • Build vs. buy. It is a thin wrapper (config file, facade, HTTP client) around GA's Measurement Protocol. The buy decision is inexpensive but low-value: the equivalent is roughly 100 lines of our own code, which we would fully control.
  • Framework upgrade planning. v1.10 is a compatibility-only release (PR #42 adds Laravel 10 support). Treat it as a line item in the Laravel 10 upgrade epic, not as a product capability.
  • Dependency risk register. This is a small, single-maintainer package with infrequent releases. The Laravel 10 bump is a positive maintenance signal, but it should be logged with an owner and a migration exit path.

When to Consider This Package

Adopt only if all of the following hold:

  • You are on Laravel (8–10) and need to emit analytics events from PHP rather than JavaScript.
  • You have confirmed the destination endpoint works for you. Critical caveat: this package targets the Universal Analytics Measurement Protocol (/collect). UA properties stopped processing hits in July 2023. If your property is GA4, this package does not send usable data unless you have a GA4-compatible fork or override the endpoint.
  • The event volume is modest and fire-and-forget semantics (no delivery guarantees, no retry queue) are acceptable.

Look elsewhere — or build the small in-house wrapper — if:

  • GA4 is the target (use the GA4 Measurement Protocol with measurement_id + api_secret, ideally via a maintained library or a Server-Side GTM container).
  • You need offline conversion imports, retries, batching, or PII-safe redaction guarantees.
  • You need a package with multiple maintainers or a published security/deprecation policy.

The v1.10 release does not change any of the above; it only widens the install constraint.

How to Pitch It (Stakeholders)

For executives: v1.10 is a maintenance release — it adds Laravel 10 compatibility and nothing else. It keeps existing Google Analytics integrations installable through our framework upgrade, but it is not an investment case. Because the underlying Universal Analytics protocol has been retired, our recommendation is to plan migration to GA4 server-side tracking rather than expand reliance on this package.

For engineering: minor version, no API or behavioral changes; PR #42 only relaxes illuminate/* constraints. Safe to bump if we already depend on it. Do not adopt it for new work — the UA /collect endpoint is defunct for GA4 properties, and a first-party GA4 Measurement Protocol client is a small, low-risk build.

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