devlogx/filament-pirsch-dashboard-widget
Filament dashboard widget that brings Pirsch Analytics directly into your admin panel. Display page views, visitors, and traffic insights without leaving Filament, with lightweight setup and straightforward configuration for quick, at-a-glance website reporting. Works with Filament panels out of the...
This package provides a Filament dashboard widget that surfaces Pirsch analytics data inside your admin panel, so you can review traffic without leaving the app.
composer require devlogx/filament-pirsch-dashboard-widgetvendor:publish for the config tag) and add your Pirsch credentials to .env (typically an access token / client ID plus the domain you want to report on). Keep these out of version control.->widgets([...])) or let it auto-register, then confirm the dashboard renders without errors.Dashboard page, load it as a super-admin, and verify the numbers match the Pirsch web UI for the same date range. That single check validates credentials, domain scoping, and caching behaviour in one go.If the widget renders an empty state instead of data, the problem is almost always credentials or a domain mismatch, not the widget itself — check that first.
canView() so customer-facing panels never expose traffic data..env) rather than constructor arguments. This keeps the widget compatible with config caching (php artisan config:cache) in production.->columnSpan()) and place it alongside your existing stats overview. Analytics widgets are usually wide — full width or two-thirds reads better than a quarter-width card.Cache::remember() with a short TTL (5–15 minutes) in a small service or custom widget subclass, and clear the cache key on deploy.composer update clean.Http::fake()) so widget rendering tests don't hit the Pirsch API, and assert the empty/error state renders gracefully.vendor:publish --force for the package's tag and clear cached config.env() directly inside the widget works in local dev and silently returns null in production once config:cache runs. Always read through config().^1.1) and review changelogs on update; breaking changes are most likely to arrive as Filament major-version bumps rather than in the package's own API.How can I help you explore Laravel packages today?