aimeos/laravel-analytics-bridge
A Laravel bridge for Aimeos e-commerce analytics, connecting storefront events to tracking and reporting. Capture product views, orders, and customer activity in Laravel apps with minimal setup.
composer require aimeos/laravel-analytics-bridge
php artisan vendor:publish --tag=config # adjust to the tag listed in the README
src/ tree first — the repository link is not resolvable from the metadata, so the authoritative install tag, service-provider name, and config filename have to come from the package itself. Aimeos Laravel packages usually auto-register via discovery; confirm with php artisan about or composer show aimeos/laravel-analytics-bridge.config/analytics.php or inside the large config/shop.php array that Aimeos Laravel setups use. Grep for the provider keys before editing anything..env — a web-stream measurement ID plus API secret for GA4, or base URL plus site ID for Matomo/Piwik — and keep the config file free of secrets.src/Provider/ or similar) and the interface it implements. That interface is the contract you will code against for the rest of the project.AppServiceProvider::register() (or select it through config) and inject the interface, never a concrete class, into your own services.order.aftersave / payment-related events) and call the provider's trackOrder($order) equivalent from a queued listener. This is the pattern that makes the bridge pay for itself — one event, N possible analytics backends.TrackPageView middleware on storefront GET routes gives you server-side views without touching every controller. Guard on runningInConsole(), runningUnitTests(), and a path allow/deny list.getBody()-style snippet, render it from one layout component and gate it behind consent state rather than scattering <script> tags across templates.trackOrder/trackPage were called with the expected order ID and revenue. This is the cleanest way to test checkout flows without hitting a vendor endpoint.vendor:publish --force will clobber local edits — back up and diff, or copy the published file aside first.G-…) is used client-side; the Measurement Protocol needs the API secret and a client_id. Persist a client ID per session or server-side conversions will land unattributed.value.sync; a slow vendor call will add latency to order confirmation. Queue the tracking listener.How can I help you explore Laravel packages today?