PHP code example of ekremogul / filament-google-analytics-realtime
1. Go to this page and download the library: Download ekremogul/filament-google-analytics-realtime library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ekremogul / filament-google-analytics-realtime example snippets
return [
'view_id' => '',
'key_file' => storage_path('app/analytics/service-account-credentials.json'),
'interval' => '60s',
];
....
'widgets' => [
'namespace' => 'App\\Filament\\Widgets',
'path' => app_path('Filament/Widgets'),
'register' => [
....
\Ekremogul\FilamentGoogleAnalyticsRealtime\Widgets\RealtimeAnalytics::class,
],
],
....
bash
php artisan vendor:publish --tag="filament-google-analytics-realtime-config"
bash
php artisan vendor:publish --tag="filament-google-analytics-realtime-translations"