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

A Filament plugin that provides a Settings Page and Dashboard Widgets for Matomo Analytics, powered by jeffersongoncalves/laravel-metrics-matomo.
| Branch | Filament | Laravel | PHP | Livewire |
|---|---|---|---|---|
| 1.x | 3.x | 10+ | 8.1+ | 3.x |
| 2.x | 4.x | 11+ | 8.2+ | 3.x |
| 3.x | 5.x | 11+ | 8.2+ | 4.x |
You are currently viewing the 3.x branch (Filament v5).
You can install the package via composer:
composer require jeffersongoncalves/filament-metrics-matomo:"^3.0"
Make sure you have run the base package migrations:
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="JeffersonGoncalves\MetricsMatomo\MatomoServiceProvider" --tag="matomo-migrations"
php artisan migrate
Optionally publish the config file:
php artisan vendor:publish --tag="filament-metrics-matomo-config"
Register the plugin in your Filament Panel Provider:
use JeffersonGoncalves\FilamentMetricsMatomo\FilamentMetricsMatomoPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
FilamentMetricsMatomoPlugin::make()
->settingsPage()
->allWidgets(),
]);
}
FilamentMetricsMatomoPlugin::make()
->settingsPage()
->liveCounter()
->visitsSummary()
->visitsChart()
->topPages()
->referrers()
->deviceTypes()
->browsers()
->countries()
Or disable specific ones:
FilamentMetricsMatomoPlugin::make()
->settingsPage()
->allWidgets()
->countries(false)
->browsers(false)
// config/filament-metrics-matomo.php
return [
'default_period' => 'day', // day, week, month, year
'cache_ttl' => 300, // seconds (0 to disable)
'cache_store' => null, // null = default store
'live_counter_poll_interval' => 30, // seconds
'live_counter_last_minutes' => 30, // minutes
'table_row_limit' => 10, // rows in table widgets
'navigation' => [
'group' => 'Analytics',
'sort' => null,
],
];
composer test
composer analyse # PHPStan
composer format # Laravel Pint
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.