by Ekrem OĞUL
Realtime Google Analytics
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',];
How to obtain the credentials to communicate with Google Analytics
Optionally, you can publish the translation
php artisan vendor:publish --tag="filament-google-analytics-realtime-translations"
Add to config/filament.php file
.... 'widgets' => [ 'namespace' => 'App\\Filament\\Widgets', 'path' => app_path('Filament/Widgets'), 'register' => [ .... \Ekremogul\FilamentGoogleAnalyticsRealtime\Widgets\RealtimeAnalytics::class, ], ],....
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.