spatie/laravel4-googletagmanager
Abandoned Laravel 4 package for integrating Google Tag Manager. Provides a facade/service provider to manage the GTM dataLayer and include the container code in your app. For Laravel 5+, use spatie/laravel-googletagmanager.
spatie/laravel-googletagmanager).dataLayer pushes.spatie/laravel-googletagmanager for L5+).dataLayer pushes.spatie/laravel-analytics or direct GTM snippet).For Executives: "This package lets us deploy Google Tag Manager in Laravel with minimal dev effort—cutting weeks of custom work to track user behavior, ads, and conversions. While abandoned, it’s a lightweight stopgap for Laravel 4; we’d migrate to Spatie’s active version in our next framework upgrade. GTM centralizes all our tracking tags, making it easier to comply with privacy laws and pivot marketing strategies without code changes."
For Engineering:
"The package abstracts GTM’s dataLayer into Laravel’s service container, so we can push events from controllers/views (e.g., event('purchase', ['revenue': $order->amount])). It’s a thin wrapper around GTM’s JS snippet—no complex setup. Critical caveat: This is Laravel 4-only; we’ll need to replace it post-migration. For new projects, use the L5+ version."
How can I help you explore Laravel packages today?