11# Laravel Google Analytics
22
3- [ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/vormkracht10 /laravel-google-analytics-v4.svg?style=flat-square )] ( https://packagist.org/packages/vormkracht10 /laravel-google-analytics-v4 )
4- [ ![ Tests] ( https://github.com/vormkracht10 /laravel-google-analytics-v4/actions/workflows/run-tests.yml/badge.svg?branch=main )] ( https://github.com/vormkracht10 /laravel-google-analytics-v4/actions/workflows/run-tests.yml )
5- [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/vormkracht10 /laravel-google-analytics-v4.svg?style=flat-square )] ( https://packagist.org/packages/vormkracht10 /laravel-google-analytics-v4 )
6- [ ![ Packagist PHP Version Support] ( https://img.shields.io/packagist/php-v/vormkracht10 /laravel-google-analytics-v4 )] ( https://packagist.org/packages/vormkracht10 /laravel-google-analytics-v4 )
7- [ ![ PHPStan] ( https://github.com/vormkracht10 /laravel-google-analytics-v4/actions/workflows/phpstan.yml/badge.svg?branch=main )] ( https://github.com/vormkracht10 /laravel-google-analytics-v4/actions/workflows/phpstan.yml )
8- ![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/vormkracht10 /laravel-google-analytics-v4 )
3+ [ ![ Latest Version on Packagist] ( https://img.shields.io/packagist/v/backstagephp /laravel-google-analytics-v4.svg?style=flat-square )] ( https://packagist.org/packages/backstagephp /laravel-google-analytics-v4 )
4+ [ ![ Tests] ( https://github.com/backstagephp /laravel-google-analytics-v4/actions/workflows/run-tests.yml/badge.svg?branch=main )] ( https://github.com/backstagephp /laravel-google-analytics-v4/actions/workflows/run-tests.yml )
5+ [ ![ Total Downloads] ( https://img.shields.io/packagist/dt/backstagephp /laravel-google-analytics-v4.svg?style=flat-square )] ( https://packagist.org/packages/backstagephp /laravel-google-analytics-v4 )
6+ [ ![ Packagist PHP Version Support] ( https://img.shields.io/packagist/php-v/backstagephp /laravel-google-analytics-v4 )] ( https://packagist.org/packages/backstagephp /laravel-google-analytics-v4 )
7+ [ ![ PHPStan] ( https://github.com/backstagephp /laravel-google-analytics-v4/actions/workflows/phpstan.yml/badge.svg?branch=main )] ( https://github.com/backstagephp /laravel-google-analytics-v4/actions/workflows/phpstan.yml )
8+ ![ GitHub release (latest by date)] ( https://img.shields.io/github/v/release/backstagephp /laravel-google-analytics-v4 )
99
1010## About Laravel Google Analytics v4
1111
@@ -16,7 +16,7 @@ Retrieve all data like pageviews, events, ecommerce transactions and more from G
1616You can install the package via composer:
1717
1818``` bash
19- composer require vormkracht10 /laravel-google-analytics
19+ composer require backstage /laravel-google-analytics
2020```
2121
2222You can publish the config file with:
@@ -61,8 +61,8 @@ After you have created the service account, you need to download the credentials
6161After you have done this, you can use the package like this:
6262
6363``` php
64- use Vormkracht10 \Analytics\Facades\Analytics;
65- use Vormkracht10 \Analytics\Period;
64+ use Backstage \Analytics\Facades\Analytics;
65+ use Backstage \Analytics\Period;
6666
6767// Get the average session duration for the last 7 days:
6868$averageSessionDuration = Analytics::averageSessionDuration(Period::days(7));
@@ -110,8 +110,8 @@ Methods to retrieve demographic analytics data for your website or application.
110110Here are some examples of how to use the methods:
111111
112112``` php
113- use Vormkracht10 \Analytics\Facades\Analytics;
114- use Vormkracht10 \Analytics\Period;
113+ use Backstage \Analytics\Facades\Analytics;
114+ use Backstage \Analytics\Period;
115115
116116// Get the top users by language for the last 7 weeks, limit to top 10:
117117$data = Analytics::topUsersByLanguage(period: Period::weeks(7), limit: 10);
@@ -148,8 +148,8 @@ Methods to retrieve device and operating system analytics data for your website
148148Here are some examples of how to use the methods:
149149
150150``` php
151- use Vormkracht10 \Analytics\Facades\Analytics;
152- use Vormkracht10 \Analytics\Period;
151+ use Backstage \Analytics\Facades\Analytics;
152+ use Backstage \Analytics\Period;
153153
154154// Get the top users by device category for the last 1 year:
155155$data = Analytics::topUsersByDeviceCategory(Period::years(1));
@@ -210,8 +210,8 @@ Methods to retrieve pageview analytics data for your website or application. You
210210Here are some examples of how to use the methods:
211211
212212``` php
213- use Vormkracht10 \Analytics\Facades\Analytics;
214- use Vormkracht10 \Analytics\Period;
213+ use Backstage \Analytics\Facades\Analytics;
214+ use Backstage \Analytics\Period;
215215
216216// Get the total pageviews for the last 14 days:
217217$data = Analytics::totalViews(Period::days(14));
@@ -266,8 +266,8 @@ Methods to retrieve realtime analytics data for your website or application. You
266266Here are some examples of how to use the methods:
267267
268268``` php
269- use Vormkracht10 \Analytics\Facades\Analytics;
270- use Vormkracht10 \Analytics\Period;
269+ use Backstage \Analytics\Facades\Analytics;
270+ use Backstage \Analytics\Period;
271271
272272// Get the total active users for the last 30 minutes:
273273$data = Analytics::activeUsers();
@@ -280,8 +280,8 @@ Methods to retrieve resource analytics data for your website or application. You
280280Here are some examples of how to use the methods:
281281
282282``` php
283- use Vormkracht10 \Analytics\Facades\Analytics;
284- use Vormkracht10 \Analytics\Period;
283+ use Backstage \Analytics\Facades\Analytics;
284+ use Backstage \Analytics\Period;
285285
286286// Get the top 10 referrals for the last 14 days:
287287$data = Analytics::getTopReferrers(period: Period::days(14), limit: 10);
@@ -315,8 +315,8 @@ Methods to retrieve session duration analytics data for your website or applicat
315315Here are some examples of how to use the methods:
316316
317317``` php
318- use Vormkracht10 \Analytics\Facades\Analytics;
319- use Vormkracht10 \Analytics\Period;
318+ use Backstage \Analytics\Facades\Analytics;
319+ use Backstage \Analytics\Period;
320320
321321// Get total sessions for the last 7 days:
322322$data = Analytics::sessions(Period::days(7));
@@ -362,8 +362,8 @@ Methods to retrieve user analytics data for your website or application. You can
362362Here are some examples of how to use the methods:
363363
364364``` php
365- use Vormkracht10 \Analytics\Facades\Analytics;
366- use Vormkracht10 \Analytics\Period;
365+ use Backstage \Analytics\Facades\Analytics;
366+ use Backstage \Analytics\Period;
367367
368368// Get the total users for the last 5 weeks:
369369$data = Analytics::totalUsers(Period::weeks(5));
@@ -401,7 +401,7 @@ Please review [our security policy](../../security/policy) on how to report secu
401401
402402## Credits
403403
404- - [ Bas van Dinther] ( https://github.com/vormkracht10 )
404+ - [ Bas van Dinther] ( https://github.com/backstagephp )
405405- [ All Contributors] ( ../../contributors )
406406
407407## License
0 commit comments