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

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

jeffersongoncalves/filament-gtm
===============================

Filament plugin for Google Tag Manager with settings page powered by Spatie Laravel Settings

3.1.1(2mo ago)4439MITPHPPHP ^8.2CI passing

Since May 2Pushed 2mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (14)Versions (12)Used By (0)

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

Filament Google Tag Manager
===========================

[](#filament-google-tag-manager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4836f0986c903c1e2495a4450b52f4150b7380b6dff75dea0beaf5ef6b61566b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d67746d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-gtm)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bedc808992d9bef84ead5ae829e71bc7975d3f61d54cc7aae454e71894cfe735/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d67746d2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d332e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-gtm/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A3.x)[![Total Downloads](https://camo.githubusercontent.com/8da912cb223e89aa1050b9628ffbe947f1f3ef0e6167c694447ca35028127a34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d67746d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-gtm)

Filament plugin for Google Tag Manager with a settings page powered by [Spatie Laravel Settings](https://github.com/spatie/laravel-settings). Manage your GTM container ID directly from the Filament admin panel.

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

[](#installation)

You can install the package via composer:

```
composer require jeffersongoncalves/filament-gtm:"^3.0"
```

Publish the settings migrations and run them:

```
php artisan vendor:publish --tag=gtm-settings-migrations
php artisan migrate
```

Usage
-----

[](#usage)

### Register the Plugin

[](#register-the-plugin)

Add the plugin to your Filament panel provider:

```
use JeffersonGoncalves\Filament\Gtm\GtmPlugin;

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

The plugin will:

- Register a **Settings Page** where you can manage your GTM container ID
- Automatically inject GTM scripts into the `` and `` sections of your Filament panels

### Customization

[](#customization)

#### Disable Settings Page

[](#disable-settings-page)

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

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

### Requirements

[](#requirements)

- PHP 8.2 or higher
- Filament 5.0
- Laravel 11.0 or higher

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)

- [Jèfferson 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

47

—

FairBetter than 94% of packages

Maintenance86

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.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 ~30 days

Recently: every ~7 days

Total

12

Last Release

40d ago

Major Versions

2.0.0 → 3.0.02026-02-16

1.1.0 → 2.1.02026-02-23

2.1.0 → 3.1.02026-02-23

2.1.1 → 3.1.12026-03-04

1.x-dev → 2.x-dev2026-04-03

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 (36 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 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

filamentfilament-plugingoogle-tag-managergtmlaravelphpspatie-laravel-settingslaravelGoogle Tag Managergtmfilament-pluginjeffersongoncalvesfilament-gtmspatie-laravel-settings

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

33184.7k6](/packages/schmeits-filament-character-counter)[jiten14/jitone-ai

jitone-ai is a powerful FilamentPHP plugin that integrates AI-powered features directly into your Filament forms.

213.1k](/packages/jiten14-jitone-ai)

PHPackages © 2026

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