theiconic/php-ga-measurement-protocol
A PHP client for the Google Analytics Measurement Protocol, letting you send server-side hits like pageviews, events, and ecommerce transactions directly to Google Analytics from your Laravel or PHP app without client-side JavaScript.
AnalyticsClient interface so application code does not depend on it directly, and so the batching strategy is an implementation detail.AnalyticsClient interface, a package-backed implementation, and Laravel queues for non-blocking dispatch. With batching available, introduce a BatchedAnalyticsClient implementation or a batching decorator rather than letting call sites build batches ad hoc.measurement_id and api_secret (GA4 supports batched payloads, so the v2.9.0 batching concept may port across), then retire the legacy package.^2.x blindly given a long prior gap) and add contract tests around both single and batch payload shapes plus HTTP behavior.How can I help you explore Laravel packages today?