PackageTrack
Sign in Get early access

spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

5.7.1 6.3M downloads/mo #2175 most downloaded on Packagist spatie/laravel-analytics

What this package is like to depend on

Last release 3 months ago

28 Apr 2026

Release timing varies

gaps range from 4 weeks to 7 months

Nearly every release is documented

notes for 68 of 68 stable releases

Nothing withdrawn

no release was ever pulled

11 years old

68 releases · first in 2015

3 releases in the last 12 months

see the full history below

Release timeline

68 releases · Mar 2015 to Apr 2026
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 60 of 68
  1. 5.7.1 28 Apr 2026
    Release notes

    What's Changed

    • Fix cache incompatibility with Laravel 13's serializable_classes by @bezhanSalleh in #553

    Full Changelog: 5.7.0...5.7.1

    Open source →
    Release notes

    What's Changed

    • Fix cache incompatibility with Laravel 13's serializable_classes by @bezhanSalleh in https://github.com/spatie/laravel-analytics/pull/553

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.7.0...5.7.1

    Open source →
    Release notes

    5.7.1 Latest

    Latest

    Compare

    Choose a tag to compare

    Open source →
  2. 5.7.0 21 Feb 2026
    Release notes

    What's Changed

    • Add Laravel 13 support
    Open source →
    Release notes

    What's Changed

    • Add Laravel 13 support
    Open source →
    Release notes

    5.7.0

    Compare

    Choose a tag to compare

    Open source →
  3. 5.6.1 26 Nov 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 5.6.0...5.6.1

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.3.0 to 2.4.0 by @dependabot[bot] in https://github.com/spatie/laravel-analytics/pull/539
    • Bump aglipanci/laravel-pint-action from 2.5 to 2.6 by @dependabot[bot] in https://github.com/spatie/laravel-analytics/pull/544
    • Update README.md by @Krasomir in https://github.com/spatie/laravel-analytics/pull/542
    • Update issue template by @AlexVanderbist in https://github.com/spatie/laravel-analytics/pull/545
    • Bump actions/checkout from 4 to 6 by @dependabot[bot] in https://github.com/spatie/laravel-analytics/pull/549
    • Added Symfony 8 support to all symfony/* packages. by @thecaliskan in https://github.com/spatie/laravel-analytics/pull/548
    • Bump stefanzweifel/git-auto-commit-action from 5 to 7 by @dependabot[bot] in https://github.com/spatie/laravel-analytics/pull/546

    New Contributors

    • @Krasomir made their first contribution in https://github.com/spatie/laravel-analytics/pull/542
    • @thecaliskan made their first contribution in https://github.com/spatie/laravel-analytics/pull/548

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.6.0...5.6.1

    Open source →
    Release notes

    5.6.1

    Compare

    Choose a tag to compare

    Open source →
  4. 5.6.0 28 Apr 2025
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 5.5.4...5.6.0

    Open source →
    Release notes

    What's Changed

    • Feat: Adds faking ability to facade by @chikondikamwendo in https://github.com/spatie/laravel-analytics/pull/538

    New Contributors

    • @chikondikamwendo made their first contribution in https://github.com/spatie/laravel-analytics/pull/538

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.4...5.6.0

    Open source →
    Release notes

    5.6.0

    Compare

    Choose a tag to compare

    Open source →
  5. 5.5.4 21 Mar 2025
    Release notes

    What's Changed

    Full Changelog: 5.5.3...5.5.4

    Open source →
    Release notes

    What's Changed

    • 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

    Open source →
    Release notes

    5.5.4

    Compare

    Choose a tag to compare

    Open source →
  6. 5.5.3 20 Feb 2025
    Release notes

    What's Changed

    • Fix TypeError in runReport after upgrading to 5.5.2 by @abr4xas in #535

    New Contributors

    Full Changelog: 5.5.2...5.5.3

    Open source →
    Release notes

    What's Changed

    • Fix TypeError in runReport after upgrading to 5.5.2 by @abr4xas in https://github.com/spatie/laravel-analytics/pull/535

    New Contributors

    • @abr4xas made their first contribution in https://github.com/spatie/laravel-analytics/pull/535

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.2...5.5.3

    Open source →
    Release notes

    5.5.3

    Compare

    Choose a tag to compare

    Open source →
  7. 5.5.2 17 Feb 2025
    Release notes

    What's Changed

    Full Changelog: 5.5.1...5.5.2

    Open source →
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/531
    • Bump aglipanci/laravel-pint-action from 2.4 to 2.5 by @dependabot in https://github.com/spatie/laravel-analytics/pull/532
    • Laravel 12.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-analytics/pull/533

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.1...5.5.2

    Open source →
    Release notes

    5.5.2

    Compare

    Choose a tag to compare

    Open source →
  8. 5.5.1 13 Jan 2025
    Release notes

    What's Changed

    • Update googleapis/php-analytics-data dependency by @JayBizzle in #529

    New Contributors

    Full Changelog: 5.5.0...5.5.1

    Open source →
    Release notes

    What's Changed

    • Update googleapis/php-analytics-data dependency by @JayBizzle in https://github.com/spatie/laravel-analytics/pull/529

    New Contributors

    • @JayBizzle made their first contribution in https://github.com/spatie/laravel-analytics/pull/529

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.5.0...5.5.1

    Open source →
    Release notes

    5.5.1

    Compare

    Choose a tag to compare

    Open source →
  9. 5.5.0 11 Dec 2024
    Release notes

    What's Changed

    New Contributors

    Full Changelog: 5.4.0...5.5.0

    Open source →
    Release notes

    What's Changed

    • Ability to run realtime reports from GA4 by @jaroslavstefanec in https://github.com/spatie/laravel-analytics/pull/528

    New Contributors

    • @jaroslavstefanec made their first contribution in https://github.com/spatie/laravel-analytics/pull/528

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.4.0...5.5.0

    Open source →
    Release notes

    5.5.0

    Compare

    Choose a tag to compare

    Open source →
  10. 5.4.0 22 Jul 2024
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in #521
    • feat: add new param 'metricFilter' in signature method 'get' by @laudefe in #523
    • Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in #525

    New Contributors

    Full Changelog: 5.3.0...5.4.0

    Open source →
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.3.1 to 2.4 by @dependabot in https://github.com/spatie/laravel-analytics/pull/521
    • feat: add new param 'metricFilter' in signature method 'get' by @laudefe in https://github.com/spatie/laravel-analytics/pull/523
    • Bump dependabot/fetch-metadata from 1.6.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/525

    New Contributors

    • @laudefe made their first contribution in https://github.com/spatie/laravel-analytics/pull/523

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.3.0...5.4.0

    Open source →
    Release notes

    5.4.0

    Compare

    Choose a tag to compare

    Open source →
  11. 5.3.0 12 Mar 2024
    Release notes

    What's Changed

    • Allow carbon 3 by @oriceon in https://github.com/spatie/laravel-analytics/pull/516

    New Contributors

    • @oriceon made their first contribution in https://github.com/spatie/laravel-analytics/pull/516

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.2.1...5.3.0

    Open source →
  12. 5.2.1 12 Feb 2024
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/spatie/laravel-analytics/pull/513
    • Add support for laravel 11 by @shuvroroy in https://github.com/spatie/laravel-analytics/pull/514

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.2.0...5.2.1

    Open source →
  13. 5.2.0 03 Jan 2024
    Release notes

    What's Changed

    • feat: period macroable by @Muetze42 in https://github.com/spatie/laravel-analytics/pull/511
    • Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/spatie/laravel-analytics/pull/504
    • Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/spatie/laravel-analytics/pull/502

    New Contributors

    • @Muetze42 made their first contribution in https://github.com/spatie/laravel-analytics/pull/511

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.1.0...5.2.0

    Open source →
  14. 5.1.0 25 Oct 2023
    Release notes

    What's Changed

    • Updated example env value key in README.md by @khsuzan in https://github.com/spatie/laravel-analytics/pull/503
    • Added method to fetch the top countries & top operating systems by @stijnvanouplines in https://github.com/spatie/laravel-analytics/pull/506

    New Contributors

    • @khsuzan made their first contribution in https://github.com/spatie/laravel-analytics/pull/503
    • @stijnvanouplines made their first contribution in https://github.com/spatie/laravel-analytics/pull/506

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.3...5.1.0

    Open source →
  15. 5.0.3 10 Jul 2023
    Release notes

    What's Changed

    • Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/497
    • Adds a $keepEmptyRows parameter to get the empty rows too. by @golchha21 in https://github.com/spatie/laravel-analytics/pull/494

    New Contributors

    • @golchha21 made their first contribution in https://github.com/spatie/laravel-analytics/pull/494

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.2...5.0.3

    Open source →
  16. 5.0.2 30 May 2023
    Release notes

    What's Changed

    • Bump aglipanci/laravel-pint-action from 0.1.0 to 2.2.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/477
    • Bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/488
    • Bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 by @dependabot in https://github.com/spatie/laravel-analytics/pull/489
    • Bump aglipanci/laravel-pint-action from 2.2.0 to 2.3.0 by @dependabot in https://github.com/spatie/laravel-analytics/pull/490
    • Extend Analytics::get with dimensionFilter parameter by @gmbenedek in https://github.com/spatie/laravel-analytics/pull/487

    New Contributors

    • @gmbenedek made their first contribution in https://github.com/spatie/laravel-analytics/pull/487

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.0.1...5.0.2

    Open source →
  17. 5.0.1 17 May 2023
    Release notes
    • Adds an $offset paramter to the get method and all methods that already accepted a $limit paramter.
    Open source →
  18. 5.0.0 06 Apr 2023
    Release notes

    What's Changed

    • Analytics API v4 by @timvandijck in https://github.com/spatie/laravel-analytics/pull/475

    New Contributors

    • @timvandijck made their first contribution in https://github.com/spatie/laravel-analytics/pull/475

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.1...5.0.0

    Open source →
  19. 4.1.1 01 Feb 2023
    Release notes

    What's Changed

    • Updated instructions by @CaddyDz in https://github.com/spatie/laravel-analytics/pull/446
    • Feature: Convert PHPUnit tests to PestPHP by @mansoorkhan96 in https://github.com/spatie/laravel-analytics/pull/456
    • Feature: Betterify Tests by @mansoorkhan96 in https://github.com/spatie/laravel-analytics/pull/457
    • Add PHP 8.2 Tests Support by @patinthehat in https://github.com/spatie/laravel-analytics/pull/465
    • Enable Dependabot Automation by @patinthehat in https://github.com/spatie/laravel-analytics/pull/464
    • Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in https://github.com/spatie/laravel-analytics/pull/471
    • Bump actions/checkout from 2 to 3 by @dependabot in https://github.com/spatie/laravel-analytics/pull/468
    • Laravel 10.x Compatibility by @laravel-shift in https://github.com/spatie/laravel-analytics/pull/472

    New Contributors

    • @dependabot made their first contribution in https://github.com/spatie/laravel-analytics/pull/471

    Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.0...4.1.1

    Open source →
  20. 4.1.0 12 Jan 2022
    Release notes

    Allow Laravel 9

    Open source →
  21. 4.0.1 10 Jun 2021
    Release notes
    • allow "Google_Service_Analytics_GaData" return type for performQuery methods (#402)
    Open source →
  22. 4.0.0 26 Mar 2021
    Release notes
    • support PHP 8+
    • drop support for PHP 7.x
    • use PHP 8 syntax where possible
    Open source →
  23. 3.11.0 04 Mar 2021
    Release notes
    • widened DateTime to DateTimeInterface to allow immutables usage (#390)
    Open source →
  24. 3.10.2 28 Nov 2020
    Release notes
    • add support for PHP 8
    Open source →
  25. 3.10.1 09 Sep 2020
    Release notes
    • Add support for Laravel 8
    Open source →
  26. 3.10.0 26 Jun 2020
    Release notes
    • Create getter for $viewId in Analytics Class
    Open source →
  27. 3.9.0 03 Mar 2020
    Release notes
    • add support for Laravel 7
    Open source →
  28. 3.8.1 23 Nov 2019
    Release notes
    • allow symfony 5 components
    Open source →
  29. 3.8.0 04 Sep 2019
    Release notes
    • add support for Laravel 6
    • use Symfony's PSR-16 cache adapter
    Open source →
  30. 3.7.0 27 Feb 2019
    Release notes
    • drop support for Laravel 5.7 and lower
    • drop support for PHP 7.1 and lower
    Open source →
  31. 3.6.3 27 Feb 2019
    Release notes
    • add support for Laravel 5.8
    Open source →
  32. 3.6.2 24 Aug 2018
    Release notes
    • add support for Laravel 5.7
    Open source →
  33. 3.6.1 04 May 2018
    Release notes
    • fix infinite loop
    Open source →
  34. 3.6.0 30 Apr 2018
    Release notes
    • add pagination to performQuery
    Open source →
  35. 3.5.0 14 Mar 2018
    Release notes
    • service_account_credentials_json now also accepts an array
    Open source →
  36. 3.4.1 08 Feb 2018
    Release notes
    • add compatibility with Laravel 5.6
    Open source →
  37. 3.4.0 08 Jan 2018
    Release notes
    • allow dynamic modification of config
    Open source →
  38. 3.3.0 03 Nov 2017
    Release notes
    • add months and years methods to Period
    Open source →
  39. 3.2.0 30 Oct 2017
    Release notes
    • add fetchUserTypes
    Open source →
  40. 3.1.0 30 Aug 2017
    Release notes
    • add compatibility with Laravel 5.5
    Open source →
  41. 3.0.1 16 Jun 2017
    Release notes
    • make publishing the config file optional
    Open source →
  42. 3.0.0 27 Apr 2017
    Release notes
    • add support for v2 of the Google API
    • renamed config file from laravel-analytics.php to analytics.php
    • dropped support for anything lower than Laravel 5.4
    Open source →
  43. 2.4.0 23 Jan 2017
    Release notes
    • add support for Laravel 5.4
    • dropped support for anything lower than Laravel 5.3
    Open source →
  44. 2.3.1 14 Dec 2016
    Release notes
    • improve exception message
    Open source →
  45. 2.3.0 20 Oct 2016
    Release notes
    • added fetchTotalVisitorsAndPageViews
    Open source →
  46. 2.2.2 23 Aug 2016
    Release notes
    • added L5.3 compatibility
    Open source →
  47. 2.2.0 23 Jul 2016
    Release notes
    • added config setting to specify cache path
    Open source →
  48. 2.1.0 22 Jun 2016
    Release notes
    • added pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPages
    • fixed credentialsJsonDoesNotExist exception
    Open source →
  49. 2.0.0 20 Jun 2016
    Release notes
    • refactored all methods
    • introduced Spatie\Analytics\Period to specify date ranges
    • the package now uses json credentials instead of .p12 file
    • the Spatie\Analytics\Analtyics class is much easier to extend
    Open source →
  50. 1.4.1 13 May 2016
    Release notes
    • fixes a bug introduced in 1.4.0 where the check whether a p12 certificate is present was broken
    Open source →
  51. 1.4.0 12 May 2016
    Release notes

    This version does not work, please upgrade to 1.4.0

    • removing the use of facades
    Open source →
  52. 1.3.1 06 Jan 2016
    Release notes
    • make calculateNumberOfDays-function protected
    Open source →
  53. 1.2.3 17 Nov 2015
    Release notes
    • Fix PHP 5.4 compatibility
    Open source →
  54. 1.2.2 08 Oct 2015
    Release notes
    • An injected Spatie\LaravelAnalytics\LaravelAnalytics-object will now be properly configured
    Open source →
  55. 1.2.1 29 Jun 2015
    Release notes
    • Removed a var_dump-call that was not supposed to be there
    Open source →
  56. 1.2.0 29 Jun 2015
    Release notes

    ###Do not use this version as it contains a var_dump that will mess up your output

    • Added a method to set the siteId at runtime
    Open source →
  57. 1.1.5 24 Jun 2015
    Release notes
    • Store Google Api's cache in Laravel's storage directory
    Open source →
  58. 1.1.4 09 Jun 2015
    Release notes
    • Handled a breaking change caused by Laravel 5.1
    Open source →
  59. 1.1.3 22 May 2015
    Release notes
    • Moved the repo
    Open source →
  60. 1.1.2 19 Mar 2015
    Release notes
    • Corrected a bug that caused an error when using the realtime-cache
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive