prajwal89/analytics

inhouse analytics solution with filament pane

v0.1.1 2025-04-14 13:40 UTC

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();

Configuration