NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2123 most downloaded on Packagist
A Laravel package to retrieve Google Analytics data.
Latest stable
5.8.0
Last release 1 months ago
19 Oct 2026
Release timing varies
gaps range from 3 weeks to 7 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
70 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Existing file-path and array credential configuration remains supported, although upstream now deprecates that usage. No live GA4 property was tested.
google/analytics-data from ^0.22.3 to ^0.28.0 in #558, allowing current Google Analytics Data client releases.This release requires PHP 8.4+ and Laravel 13. PHP 8.3 and Laravel 12 are no longer supported by this release; applications on those versions can remain on the 5.7.x series.
All four CI combinations pass: PHP 8.4/8.5 × lowest/latest stable dependencies (29 tests, 83 assertions each). Existing file-path and array credential configuration remains supported, although upstream now deprecates that usage. No live GA4 property was tested.
Thanks to @adrian-nita for the dependency update.
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.7.2...5.8.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Bump actions/checkout from 6 to 7 by @dependabot[bot] in https://github.com/spatie/laravel-analytics/pull/556
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.7.1...5.7.2
Fix cache incompatibility with Laravel 13's serializable_classes by @bezhanSalleh in https://github.com/spatie/laravel-analytics/pull/553
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 https://github.com/spatie/laravel-analytics/pull/539
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.6.0...5.6.1
Feat: Adds faking ability to facade by @chikondikamwendo in https://github.com/spatie/laravel-analytics/pull/538
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.4...5.6.0
Fix TypeError in runRealtimeReport after upgrading by @jaroslavstefanec in https://github.com/spatie/laravel-analytics/pull/536
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 https://github.com/spatie/laravel-analytics/pull/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 https://github.com/spatie/laravel-analytics/pull/531
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.1...5.5.2
Update googleapis/php-analytics-data dependency by @JayBizzle in https://github.com/spatie/laravel-analytics/pull/529
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 https://github.com/spatie/laravel-analytics/pull/528
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 https://github.com/spatie/laravel-analytics/pull/521
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
add pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPages
pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPagescredentialsJsonDoesNotExist exceptionpageTitle 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
make 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
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
One column per quarter.