ClearAnalytics for Filament — Your Analytics Inside Your Admin Panel
We're excited to release an official, open-source Filament plugin for ClearAnalytics. If you build admin panels with Filament, you can now show your privacy-first website analytics right next to the rest of your app — no tab-switching, no Google Analytics, no cookies.
What it does
The plugin adds a dedicated Analytics dashboard to your Filament v5 panel, plus a set of drop-in widgets you can place anywhere. Everything is driven by your live ClearAnalytics data through our official REST API.
- Overview stat cards — visitors, pageviews, bounce rate and average visit duration, each with a trend indicator and sparkline
- Visitors & pageviews chart — a clean time series over your selected period
- Breakdown tables — top pages, referrers, traffic sources, browsers, operating systems, languages and campaigns
- Devices — a desktop / mobile / tablet split
- E-commerce — revenue, transactions, average order value, top products and a conversion funnel
- Goals & live visitors — conversion goals and a realtime active-visitor count
A period filter (24h, 7d, 30d, 90d, 12m or a custom range) and a multi-site switcher sit at the top of the dashboard and apply to every widget at once.
Install in two minutes
The package is on Packagist and follows the standard Filament plugin conventions:
composer require clearanalytics/filament-clearanalytics
Add your API token to .env — create one under Settings → API Tokens in your ClearAnalytics account:
CLEARANALYTICS_API_TOKEN=your-api-token
# Optional: limit to one site. Leave empty for the aggregate of all sites.
CLEARANALYTICS_SITE_ID=01JM...
Then register the plugin in your panel provider:
use ClearAnalytics\Filament\ClearAnalyticsPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(ClearAnalyticsPlugin::make());
}
That's it — an Analytics item appears in your panel navigation, ready to go.
Privacy-first by design
The plugin only ever reads aggregated statistics over HTTPS. No raw tracking data, IP addresses or personal identifiers leave ClearAnalytics — your admin panel simply renders the same privacy-first, EU-hosted numbers you already see in your dashboard. API responses are cached to stay within rate limits, and every widget degrades gracefully if the API is briefly unreachable.
Open source & configurable
The plugin is MIT-licensed and supports Laravel 11, 12 and 13. You can toggle whole widget groups (e-commerce, goals, live), choose which widgets appear on your main dashboard, and configure everything per panel with a fluent API. Found a bug or want a feature? Issues and pull requests are welcome.
- Source & docs: github.com/ClearAnalytics/filament-clearanalytics
- Package: packagist.org/packages/clearanalytics/filament-clearanalytics
Looking for other ways to connect ClearAnalytics — Power BI, BigQuery, AI assistants or the raw REST API? Have a look at our integrations page.
Happy building!
Enjoyed this article?
Try ClearAnalytics for free and get privacy-first analytics for your website.