• Realtime Google Analytics

Realtime Google Analytics

Plugin information

by Ekrem OĞUL

Analytics

Realtime Google Analytics

Support

#realtime-google-analytics on Discord

Views

2787

License

MIT

Documentation

Installation

You can install the package via composer:

composer require ekremogul/filament-google-analytics-realtime

You can publish the config file with:

php artisan vendor:publish --tag="filament-google-analytics-realtime-config"

This is the contents of the published config file:

return [
'view_id' => '',
'key_file' => storage_path('app/analytics/service-account-credentials.json'),
'interval' => '60s',
];

Important

How to obtain the credentials to communicate with Google Analytics

Please follow the steps in spatie's description to get the view_id and service-account-credentials.json files

Optionally, you can publish the translation

php artisan vendor:publish --tag="filament-google-analytics-realtime-translations"

Usage

Add to config/filament.php file

....
'widgets' => [
'namespace' => 'App\\Filament\\Widgets',
'path' => app_path('Filament/Widgets'),
'register' => [
....
\Ekremogul\FilamentGoogleAnalyticsRealtime\Widgets\RealtimeAnalytics::class,
],
],
....

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.