PHPackages                             jeffersongoncalves/filament-analytics-core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jeffersongoncalves/filament-analytics-core

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jeffersongoncalves/filament-analytics-core
==========================================

Shared base classes for jeffersongoncalves Filament analytics-injector plugins (script render-hook injection + optional Spatie settings page).

3.0.0(1mo ago)14658MITPHPPHP ^8.2CI passing

Since Jun 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jeffersongoncalves/filament-analytics-core)[ Packagist](https://packagist.org/packages/jeffersongoncalves/filament-analytics-core)[ Docs](https://github.com/jeffersongoncalves/filament-analytics-core)[ GitHub Sponsors](https://github.com/jeffersongoncalves)[ RSS](/packages/jeffersongoncalves-filament-analytics-core/feed)WikiDiscussions 3.x Synced 2w ago

READMEChangelog (3)Dependencies (9)Versions (7)Used By (8)

[![Filament Analytics Core](https://raw.githubusercontent.com/jeffersongoncalves/filament-analytics-core/3.x/art/jeffersongoncalves-filament-analytics-core.png)](https://raw.githubusercontent.com/jeffersongoncalves/filament-analytics-core/3.x/art/jeffersongoncalves-filament-analytics-core.png)

Filament Analytics Core
=======================

[](#filament-analytics-core)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c7a705fcdbc2e2dd84289718090959f936d96b5376dbd35cc65236e58ef1a7dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d616e616c79746963732d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-analytics-core)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1871d3b48b482c6610c190ae5d4273946fe1a041b1ec5e45436d036f4f331d1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d616e616c79746963732d636f72652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d332e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-analytics-core/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A3.x)[![Total Downloads](https://camo.githubusercontent.com/e5f345232dcef326b7d1181dd5c0414b89e59f383e397286c908df5dbf96f4e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d616e616c79746963732d636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-analytics-core)[![License](https://camo.githubusercontent.com/43b0eb88092602e55ba027a09959470cb51e12f3efa3b7804a8739b725fe42dc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d616e616c79746963732d636f72652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Shared base classes for the jeffersongoncalves Filament **analytics-injector** plugins (Fathom, GA4/gtag, GTM, Matomo, Mixpanel, Meta Pixel, Plausible, Umami). Built on top of [`filament-plugin-core`](https://github.com/jeffersongoncalves/filament-plugin-core).

Version Compatibility
---------------------

[](#version-compatibility)

BranchFilamentPHPLaravel1.x3.x^8.2^11.02.x4.x^8.2^11.03.x5.x^8.2^11.0Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.0 or higher
- Filament 5.x (3.x branch)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require jeffersongoncalves/filament-analytics-core:"^3.0"
```

What it provides
----------------

[](#what-it-provides)

- **`AbstractAnalyticsPlugin`** — registers an optional settings page and exposes the `settingsPage(bool)` toggle. Subclass declares `getId()` and `getSettingsPageClass()`.
- **`AbstractAnalyticsServiceProvider`** — wires `hasTranslations()` and injects the tracking script(s) via render hooks. Subclass declares `packageName()` and `renderHooks()`.

Usage
-----

[](#usage)

### Plugin

[](#plugin)

```
use JeffersonGoncalves\FilamentAnalyticsCore\AbstractAnalyticsPlugin;

class FathomPlugin extends AbstractAnalyticsPlugin
{
    public function getId(): string
    {
        return 'filament-fathom';
    }

    protected function getSettingsPageClass(): ?string
    {
        return FathomSettingsPage::class;
    }
}
```

### Service Provider

[](#service-provider)

```
use Filament\View\PanelsRenderHook;
use JeffersonGoncalves\FilamentAnalyticsCore\AbstractAnalyticsServiceProvider;

class FathomServiceProvider extends AbstractAnalyticsServiceProvider
{
    protected function packageName(): string
    {
        return 'filament-fathom';
    }

    protected function renderHooks(): array
    {
        return [
            PanelsRenderHook::HEAD_START => 'fathom::script',
        ];
    }
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Jefferson Gonçalves](https://github.com/jeffersongoncalves)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance90

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

6

Last Release

45d ago

Major Versions

1.0.0 → 2.x-dev2026-06-23

1.x-dev → 3.x-dev2026-06-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/411493?v=4)[Jefferson Gonçalves](/maintainers/jeffersongoncalves)[@jeffersongoncalves](https://github.com/jeffersongoncalves)

---

Top Contributors

[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (7 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

analyticsanalytics-corefilamentfilament-pluginlaravellaravel-packagephplaravelanalyticsfilamentfilament-pluginjeffersongoncalves

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffersongoncalves-filament-analytics-core/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersongoncalves-filament-analytics-core/health.svg)](https://phpackages.com/packages/jeffersongoncalves-filament-analytics-core)
```

###  Alternatives

[tomatophp/filament-pwa

get a PWA feature on your FilamentPHP app with settings from panel

9222.0k](/packages/tomatophp-filament-pwa)[howdu/filament-record-switcher

Resource level navigation with search

1717.2k](/packages/howdu-filament-record-switcher)[qalainau/filament-inbox

Email-like inbox messaging plugin for Filament v5 — threads, starring, trash, forwarding, read receipts, and multi-tenancy out of the box.

192.6k](/packages/qalainau-filament-inbox)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
