Download the PHP package clearanalytics/filament-clearanalytics without Composer
On this page you can find all versions of the php package clearanalytics/filament-clearanalytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clearanalytics/filament-clearanalytics
More information about clearanalytics/filament-clearanalytics
Files in clearanalytics/filament-clearanalytics
Package filament-clearanalytics
Short Description ClearAnalytics.eu analytics widgets and dashboard for Filament v5 panels.
License MIT
Homepage https://github.com/ClearAnalytics/filament-clearanalytics
Informations about the package filament-clearanalytics
Filament ClearAnalytics
Display your ClearAnalytics.eu web-analytics inside a Filament panel — a dedicated Analytics dashboard plus a set of plug-and-play widgets (visitors, pageviews, bounce rate, top pages, referrers, devices, e-commerce revenue, goals and more).
It talks to the official ClearAnalytics REST API, so your panel never touches raw tracking data — it just reads aggregated stats over HTTPS.
Inspired by
bezhanSalleh/filament-google-analytics, but powered by ClearAnalytics instead of Google Analytics. Supports Filament v4 and v5.
Features
- 📊 Dedicated dashboard page with a period filter (24h / 7d / 30d / 90d / 12m or a custom date range) and a site switcher for multi-site accounts.
- 🧩 Widgets: overview stat cards (with trend + sparkline), visitors/pageviews chart, top pages, top referrers, traffic sources, devices, browsers, operating systems, languages and campaigns.
- 🛒 E-commerce (optional): revenue stat cards, revenue chart, top products and a conversion funnel.
- 🎯 Goals (optional) and a live visitors widget.
- ⚡ Cached API calls to stay within the ClearAnalytics rate limit (60 req/min), with graceful empty states when the API is unreachable.
- 🌍 English & Dutch translations included; everything is publishable.
Requirements
- PHP 8.2+
- Laravel 11, 12 or 13
- Filament v4 or v5
- A ClearAnalytics account on a plan with API access, and an API token (Settings → API Tokens).
Installation
Optionally publish the config and translations:
Installing from a local checkout (development)
Add a path repository to your app's `composer.json`, then require the package: The symlink means edits to the package are reflected in your app immediately.Configuration
Add your API token (and, optionally, a default site) to .env:
Register the plugin in your panel provider:
That's it — an Analytics item appears in your panel navigation.
Per-panel configuration
Everything in the config file can be overridden fluently:
Showing widgets on your own dashboard
By default the widgets live on the dedicated Analytics page. To also show a
subset on the panel's main dashboard, set register_on_dashboard => true and flip
the per-widget booleans in config/clear-analytics.php (widgets array), or call
->registerOnDashboard()->widgets(['top_pages' => true, ...]).
You can also drop any widget into your own page manually:
Widgets rendered outside the dedicated dashboard use the default period and site from your config.
How it works
All data comes from the ClearAnalytics REST API (/api/v1). The
ClearAnalytics\Filament\ClearAnalytics service wraps each endpoint, authenticates
with your Bearer token, caches responses, and unwraps the { "data": ... }
envelope. You can use it directly too:
Testing
Credits
A product of Coding Agency — custom software from Meppel, the Netherlands.
License
MIT.
All versions of filament-clearanalytics with dependencies
filament/filament Version ^4.0 || ^5.0
illuminate/contracts Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^11.0 || ^12.0 || ^13.0
spatie/laravel-package-tools Version ^1.16