PHPackages                             jeffersongoncalves/filament-gtag - 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-gtag

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

jeffersongoncalves/filament-gtag
================================

Filament plugin for managing Google Analytics (Gtag) settings with a Settings Page powered by spatie/laravel-settings.

3.2.0(1w ago)51.2k↑1412.5%1MITPHPPHP ^8.2CI passing

Since May 2Pushed 1w ago1 watchersCompare

[ Source](https://github.com/jeffersongoncalves/filament-gtag)[ Packagist](https://packagist.org/packages/jeffersongoncalves/filament-gtag)[ Docs](https://github.com/jeffersongoncalves/filament-gtag)[ GitHub Sponsors](https://github.com/jeffersongoncalves)[ RSS](/packages/jeffersongoncalves-filament-gtag/feed)WikiDiscussions 3.x Synced today

READMEChangelog (10)Dependencies (16)Versions (15)Used By (0)

[![Filament Gtag](https://raw.githubusercontent.com/jeffersongoncalves/filament-gtag/3.x/art/jeffersongoncalves-filament-gtag.png)](https://raw.githubusercontent.com/jeffersongoncalves/filament-gtag/3.x/art/jeffersongoncalves-filament-gtag.png)

Filament Gtag
=============

[](#filament-gtag)

[![Latest Version on Packagist](https://camo.githubusercontent.com/de8b8e54f79a3f0e5cdc7de72c22cd27c14b948af8b2aee1a2056cf689359d4c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d677461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-gtag)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6119decf8b709501652f68eaa50debfab756d17cea7da9067f2a4c20cfc0ba86/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d677461672f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d332e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-gtag/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A3.x)[![Total Downloads](https://camo.githubusercontent.com/42a7b0e265a83cfaa0e5eb1c7b151caadc61e6c2f85930d43946ac13c1c22e9e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d677461672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-gtag)[![License](https://camo.githubusercontent.com/ff84c07d3ae966cb86b13229f21788ab8d31edf54adec2efb850ca5b3bf1401c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d677461672e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Filament plugin for managing Google Analytics (Gtag) settings with a Settings Page powered by [spatie/laravel-settings](https://github.com/spatie/laravel-settings). Automatically injects the tracking script into Filament panels.

This plugin is built on top of the [laravel-gtag](https://github.com/jeffersongoncalves/laravel-gtag) package, which provides the core Google Analytics integration for Laravel applications.

Compatibility
-------------

[](#compatibility)

BranchFilamentPHPLaravel1.x3.x^8.2^11.0 | ^12.02.x4.x^8.2^11.0 | ^12.0**3.x****5.x****^8.2****^11.0 | ^12.0**Installation
------------

[](#installation)

You can install the package via composer:

```
composer require jeffersongoncalves/filament-gtag
```

Publish and run the settings migrations:

```
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
php artisan vendor:publish --tag=gtag-settings-migrations
php artisan migrate
```

Usage
-----

[](#usage)

Register the plugin in your `PanelProvider`:

```
use JeffersonGoncalves\Filament\Gtag\GtagPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            GtagPlugin::make(),
        ]);
}
```

The plugin will:

- Add a **Google Analytics Settings** page to your panel (under "Settings" navigation group)
- Automatically inject the gtag tracking script into the panel's ``

### Disable the Settings Page

[](#disable-the-settings-page)

If you only want the automatic script injection without the settings page:

```
GtagPlugin::make()
    ->settingsPage(false),
```

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 Goncalves](https://github.com/jeffersongoncalves)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance98

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.6% 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 ~30 days

Recently: every ~0 days

Total

15

Last Release

11d ago

Major Versions

1.0.0 → 2.0.02025-07-17

2.0.0 → 3.0.02026-02-16

v1.1.0 → 2.0.12026-02-24

v2.1.1 → v3.1.12026-03-04

1.2.0 → 3.x-dev2026-06-23

PHP version history (2 changes)1.0.0PHP ^8.2|^8.3

3.0.0PHP ^8.2

### 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 (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

analyticsfilamentfilament-analyticsfilament-pluginfilament-settings-pagegoogle-analyticsgtaglaravellaravel-packagespatie-settingslaravelgoogle-analyticsfilamentjeffersongoncalvesgtagspatie-settingsfilament-gtag

###  Code Quality

Static AnalysisPHPStan

### Embed Badge

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

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

###  Alternatives

[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3161.3M25](/packages/ysfkaya-filament-phone-input)[finity-labs/fin-mail

A powerful email template manager and composer for Filament with dynamic token replacement, template versioning, and inline email sending.

284.5k1](/packages/finity-labs-fin-mail)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-two-factor-authentication

Filament Two Factor Authentication: Google 2FA + Passkey Authentication

84215.9k9](/packages/stephenjude-filament-two-factor-authentication)

PHPackages © 2026

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