| Install | |
|---|---|
composer require jeffersongoncalves/filament-metrics-fathom |
|
| Latest Version: | v3.0.1 |
| PHP: | ^8.2 |

A Filament plugin that integrates Fathom Analytics into your admin panel. Get real-time visitor counts, pageview charts, top pages, referrers, browsers, countries and device breakdowns — all from your Filament dashboard.
| Plugin | Filament | Laravel | PHP | Livewire |
|---|---|---|---|---|
| 1.x | 3.x | 10.x / 11.x | 8.2+ | 3.x |
| 2.x | 4.x | 11.x+ | 8.2+ | 3.x |
| 3.x | 5.x | 11.x+ | 8.2+ | 4.x |
You can install the package via composer:
composer require jeffersongoncalves/filament-metrics-fathom:"^3.0"
Publish and run the settings migration from the base package:
php artisan vendor:publish --tag="metrics-fathom-settings"
php artisan migrate
Register the plugin in your Filament panel provider:
use JeffersonGoncalves\Filament\MetricsFathom\FathomMetricsPlugin;
public function panel(Panel $panel): Panel
{
return $panel
// ...
->plugin(FathomMetricsPlugin::make());
}
You can enable or disable features individually:
FathomMetricsPlugin::make()
->settingsPage(false) // Disable the settings page
->widgets(false) // Disable all widgets
The plugin provides 7 dashboard widgets:
| Widget | Description | Type |
|---|---|---|
| Current Visitors | Real-time visitor count with top pages | Stats Overview (polls every 30s) |
| Pageviews Chart | Visits & pageviews over the last 30 days | Line Chart |
| Top Pages | Most visited pages with visit/pageview counts | Table |
| Top Referrers | Traffic sources with visit/unique counts | Table |
| Top Browsers | Browser distribution | Doughnut Chart |
| Top Countries | Country distribution with visit/unique counts | Table |
| Top Devices | Device type distribution (desktop, mobile, tablet) | Doughnut Chart |
All widgets include:
The plugin supports English (en) and Brazilian Portuguese (pt_BR). You can publish the translations:
php artisan vendor:publish --tag="filament-metrics-fathom-translations"
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.