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

Filament plugin for Mixpanel analytics — tracking script injection and Settings Page to manage Mixpanel configuration directly from your Filament panel. Supports Filament v3, v4, and v5.
You can install the package via composer:
composer require jeffersongoncalves/filament-mixpanel
This package depends on jeffersongoncalves/laravel-mixpanel which provides the core Mixpanel analytics integration for Laravel applications.
Add the plugin to your PanelProvider:
use JeffersonGoncalves\Filament\Mixpanel\MixpanelPlugin;
public function panel(Panel $panel): Panel
{
return $panel
->plugins([
MixpanelPlugin::make(),
]);
}
This will automatically:
If you haven't already, publish the spatie/laravel-settings migration to create the settings table:
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
Then publish and run the Mixpanel settings migration:
php artisan vendor:publish --tag=mixpanel-settings-migrations
php artisan migrate
Navigate to Settings > Mixpanel Analytics in your Filament panel to configure:
If you only want the tracking script injection without the settings page:
MixpanelPlugin::make()
->settingsPage(false),
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.