jeffersongoncalves / filament-goatcounter
Filament plugin for GoatCounter: injects the tracking script into your panels and adds a settings page, powered by Spatie Laravel Settings.
Package info
github.com/jeffersongoncalves/filament-goatcounter
pkg:composer/jeffersongoncalves/filament-goatcounter
Requires
- php: ^8.2
- filament/filament: ^5.3
- jeffersongoncalves/filament-analytics-core: ^3.1
- jeffersongoncalves/laravel-goatcounter: ^1.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-10 19:34:18 UTC
README
Filament GoatCounter
Filament plugin for GoatCounter — open source, privacy-friendly web analytics — with a settings page powered by Spatie Laravel Settings. Manage GoatCounter from the Filament admin panel; the script is injected into the <head> of every panel page.
Built on top of jeffersongoncalves/laravel-goatcounter.
Compatibility
| Branch | Filament | Package version |
|---|---|---|
| 1.x | 3.x | ^1.0 |
| 2.x | 4.x | ^2.0 |
| 3.x | 5.x | ^3.0 |
Installation
composer require jeffersongoncalves/filament-goatcounter:"^3.0"
Publish the settings migrations and run them:
php artisan vendor:publish --tag=goatcounter-settings-migrations php artisan migrate
Usage
use JeffersonGoncalves\Filament\GoatCounter\GoatCounterPlugin; public function panel(Panel $panel): Panel { return $panel ->plugins([ GoatCounterPlugin::make(), ]); }
The plugin registers a GoatCounter settings page and injects the script into the <head> of every panel page once the settings are complete.
| Field | Label |
|---|---|
code |
Site code |
Disable the Settings Page
GoatCounterPlugin::make() ->settingsPage(false),
To render the script outside Filament, add @include('goatcounter::script') to your own layout.
Navigation group
Put the settings page in one of your panel's own navigation groups (a string or a closure):
GoatCounterPlugin::make() ->navigationGroup(fn (): string => __('admin.navigation.settings')),
Requirements
- PHP 8.2 or higher
- Filament 5.x
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
