spatie/laravel-googletagmanager
Google Tag Manager integration for Laravel
3.1.1
3.9M downloads/mo
#2721 most downloaded on Packagist
spatie/laravel-googletagmanager
What this package is like to depend on
Last release 6 months ago
21 Feb 2026
Release timing varies
gaps range from 3 weeks to 2.2 years
Most releases are documented
notes for 23 of 32 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
32 releases · first in 2015
3 releases in the last 12 months
see the full history below
Release timeline
32 releases · Jun 2015 to Feb 2026Releases
latest 32-
3.1.121 Feb 2026 -
3.1.031 Jan 2026Release notes
Open source →What's Changed
New Features
- Add CSP nonce support for script tags via
nonceEnabledconfiguration 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.Release notes
Open source →What's Changed
New Features
- Add CSP nonce support for script tags via
nonceEnabledconfiguration 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. - Add CSP nonce support for script tags via
-
3.0.012 Sep 2025Release notes
Open source →What's Changed
- Update issue template by @AlexVanderbist in #59
- 3.x by @bram-pkg in #58
New Contributors
- @AlexVanderbist made their first contribution in #59
Full Changelog: 2.8.1...3.0.0
Release notes
Open source →What's Changed
- Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-googletagmanager/pull/59
- 3.x by @bram-pkg in https://github.com/spatie/laravel-googletagmanager/pull/58
New Contributors
- @AlexVanderbist made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/59
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.8.1...3.0.0
-
2.8.118 Aug 2025Release notes
Open source →What's Changed
- 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
New Contributors
- @bram-pkg made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/57
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.8.0...2.8.1
-
2.8.009 May 2025Release notes
Open source →What's Changed
- Flashing push data by @jmsfwk in https://github.com/spatie/laravel-googletagmanager/pull/55
New Contributors
- @jmsfwk made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/55
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.7.1...2.8.0
-
2.7.101 Mar 2024Release notes
Open source →What's Changed
- Set data-layer values before initialization by @mithredate in #52
Full Changelog: 2.7.0...2.7.1
Release notes
Open source →What's Changed
- 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
-
2.7.026 Feb 2024Release notes
Open source →What's Changed
- Allow setting custom domains for serving gtm.js by @mithredate in #51
New Contributors
- @mithredate made their first contribution in #51
Full Changelog: 2.6.7...2.7.0
Release notes
Open source →What's Changed
- Allow setting custom domains for serving gtm.js by @mithredate in https://github.com/spatie/laravel-googletagmanager/pull/51
New Contributors
- @mithredate made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/51
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.7...2.7.0
-
2.6.711 Dec 2023Release notes
Open source →What's Changed
- Fix macroPath comma typo by @viktorasbuivydas in #47
- 👌 IMPROVE: delay push after load event by @mickaelperrin in #50
New Contributors
- @viktorasbuivydas made their first contribution in #47
- @mickaelperrin made their first contribution in #50
Full Changelog: 2.6.6...2.6.7
Release notes
Open source →What's Changed
- Fix macroPath comma typo by @viktorasbuivydas in https://github.com/spatie/laravel-googletagmanager/pull/47
- 👌 IMPROVE: delay push after load event by @mickaelperrin in https://github.com/spatie/laravel-googletagmanager/pull/50
New Contributors
- @viktorasbuivydas made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/47
- @mickaelperrin made their first contribution in https://github.com/spatie/laravel-googletagmanager/pull/50
Full Changelog: https://github.com/spatie/laravel-googletagmanager/compare/2.6.6...2.6.7
-
2.6.615 Dec 2021Release notes
Open source →What's Changed
- Fixed dataLayer variables set through facade not being outputted by @FrittenKeeZ in #45
Full Changelog: 2.6.5...2.6.6
-
2.6.513 Dec 2021Release notes
Open source →What's Changed
- Change instance to bind in service provider by @fransjooste1 in #43
New Contributors
- @fransjooste1 made their first contribution in #43
Full Changelog: 2.6.4...2.6.5
-
2.6.411 Dec 2021Nothing published for this version
-
2.6.317 Nov 2021Nothing published for this version
-
2.6.213 Sep 2019Nothing published for this version
-
2.6.121 Aug 2019 -
2.6.029 Oct 2018 -
2.5.115 Oct 2018 -
2.5.026 Jul 2018 -
2.4.026 Oct 2017 -
2.3.014 Feb 2017Nothing published for this version
-
2.2.312 May 2017 -
2.2.122 Jun 2016 -
2.2.025 Jun 2015 -
2.1.024 Jun 2015 -
v2.0.011 Jun 2015Release notes
Open source →- This is now a Laravel 5 specific package. Laravel 4 version can be found here: https://github.com/spatie/laravel4-googletagmanager
-
1.2.211 Jun 2015Release notes
Open source →- Changed: If GoogleTagManager is disabled, ApiKeyNotSetException won't throw
-
1.2.111 Jun 2015 -
1.2.010 Jun 2015 -
1.1.208 Jun 2015Nothing published for this version
-
1.1.108 Jun 2015Nothing published for this version
-
1.1.008 Jun 2015Nothing published for this version
-
1.0.105 Jun 2015Nothing published for this version
-
1.0.004 Jun 2015Nothing published for this version