-
-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rework for Analtyics Reporting API v4. * Fix styling * Update installation instructions * fetchVisitorsAndPageViews implementation * Implement fetchTotalVisitorsAndPageViews * use pint * Fix styling * use default namespace * formatting * nitpick * improve docblock * Merge * nitpicks * nitpicks * Fix styling * update deps * nitpicks * Add limit to fetchMostVisitedPages * restructure tests * restructure tests * Implement fetchTopReferrers * Fix styling * improve test names * Update docs * wip * wip * wip * wip * Fix styling * wip * wip * Fix styling * Add fetchTopBrowsers function * Add fetchUserTypes function * Fix config test * Fix styling * Fix config test * Fix fetchVisitorsAndPageViews test * Fix styling * Reworked ordering system * Fix styling * Implement fetchTotalVisitorsAndPageViews * Reformat test * Fix styling * Update tests * Fix styling * Add get function and document it * Fix tests * Fix styling * Removed old comment * Write tests for OrderBy class. * Fix styling * Unify / into always using . * Refactor TypeCaster and write tests for it. * Update README.md * Refactor TypeCaster and write tests for it. * Fix autodiscover issue * Fix auto-discover issue. * use illuminate macroable * nitpicks * Fix styling --------- Co-authored-by: timvandijck <[email protected]> Co-authored-by: Freek Van der Herten <[email protected]> Co-authored-by: freekmurze <[email protected]>
- Loading branch information
1 parent
9efc950
commit 5ed2684
Showing
30 changed files
with
764 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Check & fix styling | ||
|
||
on: [push] | ||
|
||
jobs: | ||
php-cs-fixer: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Fix styling issues | ||
uses: aglipanci/[email protected] | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Fix styling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,3 @@ composer.lock | |
docs | ||
vendor | ||
.phpunit.result.cache | ||
.php-cs-fixer.cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Upgrading to v5 | ||
|
||
From version 5 laravel-analytics will leverage the new Google Analytics 4 Data API. | ||
Because of this rewrite a number of breaking changes were made. This guide will help you upgrade to the latest version. | ||
|
||
## Installation | ||
|
||
As mentioned v5 uses a different API so you will need to enable it on https://console.developers.google.com/apis. If you want to know more about this you can consult the installation instructions in the README. | ||
|
||
## Method changes | ||
|
||
### `fetchVisitorsAndPageViews` | ||
will now return `activeUsers`, `screenPageViews` and `pageTitle`. The `date` property has been removed. | ||
If you want to have the results grouped by day you can use the `fetchVisitorsAndPageViewsByDate` function. | ||
|
||
### `fetchTotalVisitorsAndPageViews` | ||
will now return `date`, `activeUsers` and `screenPageViews`. | ||
|
||
### `fetchMostVisitedPages` | ||
will now return `fullPageUrl`, `pageTitle` and `screenPageViews`. | ||
|
||
### `fetchTopReferrers` | ||
will now return `screenPageViews` and `pageReferrer`. | ||
|
||
### `fetchTopBrowsers` | ||
will now return `screenPageViews` and `browser`. | ||
|
||
### `fetchUserTypes` | ||
will return a collection with items that have `activeUsers` and `newVsReturning` which can equal to `new` or `returning`. |
Oops, something went wrong.