NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2228 most downloaded on Packagist
A Laravel package to retrieve Google Analytics data.
Last release 9 days ago
29 Sep 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
69 releases · first in 2015
Bump actions/checkout from 6 to 7 by @dependabot [bot] in #556
Full Changelog: 5.7.1...5.7.2
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.7.1...5.7.2
One column per quarter.
Fix cache incompatibility with Laravel 13's serializable_classes by @bezhanSalleh in #553
serializable_classes by @bezhanSalleh in #553Full Changelog: 5.7.0...5.7.1
serializable_classes by @bezhanSalleh in https://github.com/spatie/laravel-analytics/pull/553Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.7.0...5.7.1
What's Changed Add Laravel 13 support
Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot [bot] in #539
Full Changelog: 5.6.0...5.6.1
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.6.0...5.6.1
Feat: Adds faking ability to facade by @chikondikamwendo in #538
Full Changelog: 5.5.4...5.6.0
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.4...5.6.0
Fix TypeError in runRealtimeReport after upgrading by @jaroslavstefanec in #536
Full Changelog: 5.5.3...5.5.4
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.3...5.5.4
Fix TypeError in runReport after upgrading to 5.5.2 by @abr4xas in #535
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.2...5.5.3
Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in #531
Full Changelog: 5.5.1...5.5.2
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.1...5.5.2
Update googleapis/php-analytics-data dependency by @JayBizzle in #529
googleapis/php-analytics-data dependency by @JayBizzle in #529Full Changelog: 5.5.0...5.5.1
googleapis/php-analytics-data dependency by @JayBizzle in https://github.com/spatie/laravel-analytics/pull/529Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.0...5.5.1
Ability to run realtime reports from GA4 by @jaroslavstefanec in #528
Full Changelog: 5.4.0...5.5.0
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.4.0...5.5.0
Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #521
Full Changelog: 5.3.0...5.4.0
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.3.0...5.4.0
Allow carbon 3 by @oriceon in https://github.com/spatie/laravel-analytics/pull/516
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.2.1...5.3.0
Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/spatie/laravel-analytics/pull/513
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.2.0...5.2.1
feat: period macroable by @Muetze42 in https://github.com/spatie/laravel-analytics/pull/511
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.1.0...5.2.0
Updated example env value key in README.md by @khsuzan in https://github.com/spatie/laravel-analytics/pull/503
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.3...5.1.0
Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/497
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.2...5.0.3
Bump aglipanci/laravel-pint-action from 0.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/477
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.1...5.0.2
Adds an $offset paramter to the get method and all methods that already accepted a $limit paramter.
$offset paramter to the get method and all methods that already accepted a $limit paramter.Analytics API v4 by @timvandijck in https://github.com/spatie/laravel-analytics/pull/475
Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.1...5.0.0
Updated instructions by @CaddyDz in https://github.com/spatie/laravel-analytics/pull/446
Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.0...4.1.1
Allow Laravel 9
Allow Laravel 9
allow "Google_Service_Analytics_GaData" return type for performQuery methods
use PHP 8 syntax where possible
widened DateTime to DateTimeInterface to allow immutables usage
- add support for PHP 8
- Add support for Laravel 8
Create getter for $viewId in Analytics Class
- add support for Laravel 7
- allow symfony 5 components
use Symfony's PSR-16 cache adapter
drop support for Laravel 5.7 and lower
- add support for Laravel 5.8
- add support for Laravel 5.7
- fix infinite loop
- add pagination to performQuery
performQueryservice_account_credentials_json now also accepts an array
service_account_credentials_json now also accepts an arrayadd compatibility with Laravel 5.6
allow dynamic modification of config
add months and years methods to Period
months and years methods to Period- add fetchUserTypes
fetchUserTypesadd compatibility with Laravel 5.5
make publishing the config file optional
add support for v2 of the Google API
v2 of the Google APIlaravel-analytics.php to analytics.phpdropped support for anything lower than Laravel 5.3
- improve exception message
added fetchTotalVisitorsAndPageViews
fetchTotalVisitorsAndPageViews- added L5.3 compatibility
added config setting to specify cache path
added pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPages
pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPagescredentialsJsonDoesNotExist exceptionintroduced Spatie\Analytics\Period to specify date ranges
Spatie\Analytics\Period to specify date rangesSpatie\Analytics\Analtyics class is much easier to extendfixes a bug introduced in 1.4.0 where the check whether a p12 certificate is present was broken
This version does not work, please upgrade to 1.4.0
This version does not work, please upgrade to 1.4.0
make calculateNumberOfDays-function protected
calculateNumberOfDays-function protected- Fix PHP 5.4 compatibility
An injected Spatie\LaravelAnalytics\LaravelAnalytics-object will now be properly configured
Spatie\LaravelAnalytics\LaravelAnalytics-object will now be properly configuredRemoved a var_dump-call that was not supposed to be there
Added a method to set the siteId at runtime
###Do not use this version as it contains a var_dump that will mess up your output
Store Google Api's cache in Laravel's storage directory
Handled a breaking change caused by Laravel 5.1
- Moved the repo
Your coding agent can read these notes before it upgrades. Set up the MCP server →