承接 jeffersongoncalves/filament-gtm 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeffersongoncalves/filament-gtm

最新稳定版本:3.1.1

Composer 安装命令:

composer require jeffersongoncalves/filament-gtm

包简介

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

README 文档

README

Filament Gtm

Filament Google Tag Manager

Latest Version on Packagist GitHub Code Style Action Status Total Downloads License

Filament plugin for Google Tag Manager with a settings page powered by Spatie Laravel Settings. Manage your GTM container ID directly from the Filament admin panel.

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

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 <head> and <body> sections of your Filament panels

Customization

Disable Settings Page

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

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

Requirements

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

Testing

composer test

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.

统计信息

  • 总下载量: 639
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固