New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

jeffersongoncalves/filament-metrics-matomo

Filament plugin for Matomo Analytics - Settings page and dashboard widgets
82 3
Install
composer require jeffersongoncalves/filament-metrics-matomo
Latest Version:3.3.0
PHP:^8.2
Laravel:11 · 12 · 13
License:MIT
Last Updated:Oct 28, 2026
Links: GitHub  ·  Packagist
Maintainer: jeffersongoncalves

Filament Metrics Matomo

Filament Metrics Matomo

Buy Me A Coffee

Latest Version on Packagist Total Downloads License

A Filament plugin that provides a Settings Page and Dashboard Widgets for Matomo Analytics, powered by jeffersongoncalves/laravel-metrics-matomo.

Version Compatibility

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).

Features

  • Settings Page - Configure Matomo connection (URL, API token, Site ID, Timezone) with a "Test Connection" button
  • Live Counter Widget - Real-time visitors with auto-polling (pulsating green dot)
  • Visits Summary Widget - Stats overview with unique visitors, visits, pageviews, bounce rate, avg. duration
  • Visits Chart Widget - Line chart with visits over time (7/14/30/90 days filter)
  • Top Pages Widget - Table with most visited pages
  • Referrers Widget - Doughnut chart with referrer types
  • Device Types Widget - Doughnut chart with device distribution
  • Browsers Widget - Bar chart with browser usage
  • Countries Widget - Table with visitor countries
  • Caching - Configurable TTL and cache store
  • Translations - English and Brazilian Portuguese (pt_BR) included

Installation

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"

Usage

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(),
        ]);
}

Enable/Disable Individual Widgets

FilamentMetricsMatomoPlugin::make()
    ->settingsPage()
    ->liveCounter()
    ->visitsSummary()
    ->visitsChart()
    ->topPages()
    ->referrers()
    ->deviceTypes()
    ->browsers()
    ->countries()

Or disable specific ones:

FilamentMetricsMatomoPlugin::make()
    ->settingsPage()
    ->allWidgets()
    ->countries(false)
    ->browsers(false)

Configuration

// 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,
    ],
];

Navigation group

Put the settings page in one of your panel's own navigation groups (a string or a closure):

FilamentMetricsMatomoPlugin::make()
    ->navigationGroup(fn (): string => __('admin.navigation.settings')),

Testing

composer test

Code Quality

composer analyse   # PHPStan
composer format    # Laravel Pint

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please see SECURITY for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

laboiteacode/filament-dashboard-widgets

A collection of ready to use, professional dashboard widgets for Filament: metri...

14,241 8
jeffersongoncalves/filament-metrics-fathom

Filament plugin for Fathom Analytics metrics - dashboard widgets for pageviews,...

71 1
agencetwogether/matomo-analytics

Matomo Analytics integration for Filament Panels with a set of widgets to displa...

274 2
simplestats-io/filament-plugin

Filament v5 dashboard plugin for SimpleStats analytics. View your visitors, regi...

1,909 6
octopyid/filament-tabify

Transform your Filament dashboard with elegant Tabbed Widgets

12,951 1

Version History

Version Released PHP License
3.3.0 ^8.2 MIT
3.2.0 ^8.2 MIT
3.1.0 ^8.2 MIT
v3.0.0 ^8.2 MIT
2.3.0 ^8.2 MIT