All notable changes to Laravel-Analytics will be documented in this file
- Ability to run realtime reports from GA4 by @jaroslavstefanec in #528
- @jaroslavstefanec made their first contribution in #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 #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
- @laudefe made their first contribution in #523
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.3.0...5.4.0
- Allow carbon 3 by @oriceon in #516
- @oriceon made their first contribution in #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 #513
- Add support for laravel 11 by @shuvroroy in #514
Full Changelog: https://github.com/spatie/laravel-analytics/compare/5.2.0...5.2.1
- feat: period macroable by @Muetze42 in #511
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in #504
- Bump actions/checkout from 3 to 4 by @dependabot in #502
- @Muetze42 made their first contribution in #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 #503
- Added method to fetch the top countries & top operating systems by @stijnvanouplines in #506
- @khsuzan made their first contribution in #503
- @stijnvanouplines made their first contribution in #506
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 #497
- Adds a $keepEmptyRows parameter to get the empty rows too. by @golchha21 in #494
- @golchha21 made their first contribution in #494
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 #477
- Bump dependabot/fetch-metadata from 1.4.0 to 1.5.0 by @dependabot in #488
- Bump dependabot/fetch-metadata from 1.5.0 to 1.5.1 by @dependabot in #489
- Bump aglipanci/laravel-pint-action from 2.2.0 to 2.3.0 by @dependabot in #490
- Extend Analytics::get with dimensionFilter parameter by @gmbenedek in #487
- @gmbenedek made their first contribution in #487
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.
- Analytics API v4 by @timvandijck in #475
- @timvandijck made their first contribution in #475
Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.1...5.0.0
- Updated instructions by @CaddyDz in #446
- Feature: Convert PHPUnit tests to PestPHP by @mansoorkhan96 in #456
- Feature: Betterify Tests by @mansoorkhan96 in #457
- Add PHP 8.2 Tests Support by @patinthehat in #465
- Enable Dependabot Automation by @patinthehat in #464
- Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 by @dependabot in #471
- Bump actions/checkout from 2 to 3 by @dependabot in #468
- Laravel 10.x Compatibility by @laravel-shift in #472
- @dependabot made their first contribution in #471
Full Changelog: https://github.com/spatie/laravel-analytics/compare/4.1.0...4.1.1
Allow Laravel 9
- allow "Google_Service_Analytics_GaData" return type for performQuery methods (#402)
- support PHP 8+
- drop support for PHP 7.x
- use PHP 8 syntax where possible
- widened DateTime to DateTimeInterface to allow immutables usage (#390)
- 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
- add support for Laravel 6
- use Symfony's PSR-16 cache adapter
- fix cache lifetime
- drop support for Laravel 5.7 and lower
- drop support for PHP 7.1 and lower
- add support for Laravel 5.8
- add support for Laravel 5.7
- fix infinite loop
- add pagination to
performQuery
service_account_credentials_json
now also accepts an array
- add compatibility with Laravel 5.6
- allow dynamic modification of config
- add
months
andyears
methods toPeriod
- add
fetchUserTypes
- add compatibility with Laravel 5.5
- make publishing the config file optional
- add support for
v2
of the Google API - renamed config file from
laravel-analytics.php
toanalytics.php
- dropped support for anything lower than Laravel 5.4
- add support for Laravel 5.4
- dropped support for anything lower than Laravel 5.3
- improve exception message
- added
fetchTotalVisitorsAndPageViews
- added L5.3 compatibility
- added a fallback for the cache path setting
- added config setting to specify cache path
- added
pageTitle
tofetchVisitorsAndPageViews
andfetchMostVisitedPages
- fixed
credentialsJsonDoesNotExist
exception
- 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
- fixes 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
- removing the use of facades
- make
calculateNumberOfDays
-function protected
- Added method getSiteId()
- Fix PHP 5.4 compatibility
- An injected
Spatie\LaravelAnalytics\LaravelAnalytics
-object will now be properly configured
- Removed a var_dump-call that was not supposed to be there
###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
- Store Google Api's cache in Laravel's storage directory
- Handled a breaking change caused by Laravel 5.1
- Moved the repo
- Corrected a bug that caused an error when using the realtime-cache
- Corrected a bug that caused the realtime-cache to be stored for too long
- Added support for the Real Time Reporting API
- Lowered minimum required Carbon version from 1.17 to ~1.0
- Fix the breaking error in the Api Helper.
- Lowered minimum required PHP version to 5.4
- This version is not working due to a bug in the Api Helper.
- Use Laraval 5 contracts to typehint cache
- Add DateTime type hints
- Stable first release
- Experimental initial release