NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2515 most downloaded on Packagist
Google Tag Manager integration for Laravel
Latest stable
3.1.1
Last release 9 months ago
21 Feb 2026
Release timing varies
gaps range from 3 weeks to 2.2 years
Most releases are documented
notes for 25 of 32 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
32 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Add Laravel 13 support
Add Laravel 13 support
Add CSP nonce support for script tags via nonceEnabled configuration option
nonceEnabled configuration option (#63)When using this package with spatie/laravel-csp, you can now enable CSP nonces on injected script tags:
// config/googletagmanager.php
'nonceEnabled' => env('GOOGLE_TAG_MANAGER_NONCE_ENABLED', true),
This uses Laravel's Vite::cspNonce() to inject the nonce attribute on all script tags.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-googletagmanager/pull/59
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.8.1...3.0.0
Add support for Laravel Octane by using the "scoped" method if it exists by @bram-pkg in https://github.com/spatie/laravel-googletagmanager/pull/57
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.8.0...2.8.1
Flashing push data by @jmsfwk in https://github.com/spatie/laravel-googletagmanager/pull/55
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.7.1...2.8.0
Set data-layer values before initialization by @mithredate in https://github.com/spatie/laravel-googletagmanager/pull/52
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.7.0...2.7.1
Allow setting custom domains for serving gtm.js by @mithredate in https://github.com/spatie/laravel-googletagmanager/pull/51
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.7...2.7.0
Fix macroPath comma typo by @viktorasbuivydas in https://github.com/spatie/laravel-googletagmanager/pull/47
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.6...2.6.7
Fixed dataLayer variables set through facade not being outputted by @FrittenKeeZ in https://github.com/spatie/laravel-googletagmanager/pull/45
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.5...2.6.6
Change instance to bind in service provider by @fransjooste1 in https://github.com/spatie/laravel-googletagmanager/pull/43
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.4...2.6.5
Make binding a closure by @bilfeldt in https://github.com/spatie/laravel-googletagmanager/pull/42
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.3...2.6.4
Update CHANGELOG.md by @igor-kamil in https://github.com/spatie/laravel-googletagmanager/pull/36
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.2...2.6.3
Nothing published for this version
Get default values from .env file
- Added: setId
setId- Fixed view creator
Separate the script to head and body sections
Separate the script to head and body sections
Added: support for L5.5 package discovery
Nothing published for this version
Fixed: Unescape unicode in DataLayer JSON
Fixed: toJson should always return a string
- Added: Flash function
Added: option to specify the path to macros
This is now a Laravel 5 specific package. For the Laravel 4 implementation, check out https://github.com/spatie/laravel4-googletagmanager/
This is now a Laravel 5 specific package. For the Laravel 4 implementation, check out https://github.com/spatie/laravel4-googletagmanager/
Changed: If GoogleTagManager is disabled, ApiKeyNotSetException won't throw
Changed: If GoogleTagManager is disabled, ApiKeyNotSetException won't throw
Minor bugfixes & internal refactoring
Minor bugfixes & internal refactoring
- First official release
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.