prajwal89 / analytics
inhouse analytics solution with filament pane
v0.1.1
2025-04-14 13:40 UTC
Requires
- geoip2/geoip2: ^3.1
- jenssegers/agent: ^2.6
- malzariey/filament-daterangepicker-filter: ^3.3
Requires (Dev)
- laravel/pint: ^1.21
This package is auto-updated.
Last update: 2025-04-15 17:52:46 UTC
README
Installation
- Register the plugin in your admin panel.
- Publish the JavaScript file using:
php artisan vendor:publish --tag=analytics-assets
- exclude the route from csrf checking
$middleware->validateCsrfTokens(except: [ '/api/an' ]);
- Register
PageViewsTrendChart::class
as a dashboard widget (optional). - Register
PageViewsDoughnutChart::class
as a dashboard widget (optional). - Download the GeoLite database required for location data of the users using:
php artisan analytics:sync-geolite-db-command
- Add the following to your scheduler to update the database periodically (ideally every 30 days) (optional but recommended):
Schedule::command('analytics:sync-geolite-db-command') ->withoutOverlapping() ->twiceMonthly();