prajwal89/analytics

inhouse analytics solution with filament pane

Installs: 80

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/prajwal89/analytics

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

This package is auto-updated.

Last update: 2025-10-09 14:26:09 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

  • Add the following to your scheduler to update the database periodically (ideally every 30 days) (optional but recommended):

Schedule::command('analytics:sync-geolite-db')
    ->withoutOverlapping()
    ->twiceMonthly();

Configuration