Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Analytics Laravel Package

spatie/laravel-analytics

Laravel package to retrieve Google Analytics data with a simple API. Fetch most visited pages, visitors and page views for a given period, returning Laravel Collections. Quick to install, configurable, and works nicely in dashboards and reports.

View on GitHub
Deep Wiki
Context7
5.7.0

What's Changed

  • Add Laravel 13 support
5.6.1

What's Changed

New Contributors

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

5.5.4

What's Changed

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

5.5.3

What's Changed

New Contributors

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

5.5.2

What's Changed

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

5.5.1

What's Changed

New Contributors

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

5.5.0
5.4.0

What's Changed

New Contributors

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

5.2.1

What's Changed

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

5.2.0

What's Changed

New Contributors

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

5.1.0

What's Changed

New Contributors

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

5.0.3

What's Changed

New Contributors

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

5.0.2

What's Changed

New Contributors

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

5.0.1
  • Adds an $offset paramter to the get method and all methods that already accepted a $limit paramter.
4.1.0

Allow Laravel 9

4.0.1
  • allow "Google_Service_Analytics_GaData" return type for performQuery methods (#402)
4.0.0
  • support PHP 8+
  • drop support for PHP 7.x
  • use PHP 8 syntax where possible
3.11.0
  • widened DateTime to DateTimeInterface to allow immutables usage (#390)
3.10.2
  • add support for PHP 8
3.10.1
  • Add support for Laravel 8
3.10.0
  • Create getter for $viewId in Analytics Class
3.9.0
  • add support for Laravel 7
3.8.1
  • allow symfony 5 components
3.8.0
  • add support for Laravel 6
  • use Symfony's PSR-16 cache adapter
3.7.1
  • fix cache lifetime
3.7.0
  • drop support for Laravel 5.7 and lower
  • drop support for PHP 7.1 and lower
3.6.3
  • add support for Laravel 5.8
3.6.2
  • add support for Laravel 5.7
3.6.1
  • fix infinite loop
3.6.0
  • add pagination to performQuery
3.5.0
  • service_account_credentials_json now also accepts an array
3.4.1
  • add compatibility with Laravel 5.6
3.4.0
  • allow dynamic modification of config
3.3.0
  • add months and years methods to Period
3.2.0
  • add fetchUserTypes
3.1.0
  • add compatibility with Laravel 5.5
3.0.1
  • make publishing the config file optional
2.4.0
  • add support for Laravel 5.4
  • dropped support for anything lower than Laravel 5.3
2.3.0
  • added fetchTotalVisitorsAndPageViews
2.3.1
  • improve exception message
3.0.0
  • 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
2.2.2
  • added L5.3 compatibility
2.2.1
  • added a fallback for the cache path setting
2.2.0
  • added config setting to specify cache path
2.1.0
  • added pageTitle to fetchVisitorsAndPageViews and fetchMostVisitedPages
  • fixed credentialsJsonDoesNotExist exception
2.0.0
  • 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
1.4.1
  • fixes a bug introduced in 1.4.0 where the check whether a p12 certificate is present was broken
1.4.0

This version does not work, please upgrade to 1.4.0

  • removing the use of facades
1.3.1
  • make calculateNumberOfDays-function protected
1.3.0
  • Added method getSiteId()
1.2.3
  • Fix PHP 5.4 compatibility
1.2.2
  • An injected Spatie\LaravelAnalytics\LaravelAnalytics-object will now be properly configured
1.2.1
  • Removed a var_dump-call that was not supposed to be there
1.2.0

###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
1.1.5
  • Store Google Api's cache in Laravel's storage directory
1.1.4
  • Handled a breaking change caused by Laravel 5.1
1.1.3
  • Moved the repo
1.1.2
  • Corrected a bug that caused an error when using the realtime-cache
1.1.1
  • Corrected a bug that caused the realtime-cache to be stored for too long
1.1.0
1.0.4
  • Lowered minimum required Carbon version from 1.17 to ~1.0
1.0.3
  • Fix the breaking error in the Api Helper.
1.0.2
  • Lowered minimum required PHP version to 5.4
  • This version is not working due to a bug in the Api Helper.
1.0.1
  • Use Laraval 5 contracts to typehint cache
  • Add DateTime type hints
1.0.0
  • Stable first release
0.0.1
  • Experimental initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport