artisanpack-ui / google-tag-manager
Google Tag Manager container management and UI components for ArtisanPack UI, built on the google base package.
Package info
github.com/ArtisanPack-UI/google-tag-manager
pkg:composer/artisanpack-ui/google-tag-manager
Requires
- php: ^8.2
- artisanpack-ui/core: ^1.0
- artisanpack-ui/google: ^1.0
- illuminate/support: ^10.0|^11.0|^12.0|^13.0
Requires (Dev)
- artisanpack-ui/code-style: ^1.1
- artisanpack-ui/code-style-pint: ^1.1
- dealerdirect/phpcodesniffer-composer-installer: ^1.0
- friendsofphp/php-cs-fixer: ^3.75
- laravel/pint: ^1.26
- livewire/livewire: ^3.6
- orchestra/testbench: ^10.2|^11.0
- pestphp/pest: ^3.8|^4.0
- pestphp/pest-plugin-laravel: ^3.2|^4.1
Suggests
- artisanpack-ui/livewire-ui-components: Renders the GTM container and tag management panels with x-artisanpack-* components.
This package is auto-updated.
Last update: 2026-07-12 20:17:03 UTC
README
Google Tag Manager container management and UI components for the ArtisanPack UI ecosystem. Ships the client-side container snippet installer, a server-side Tag Manager API client, and Blade / Livewire / React / Vue components for surfacing container and tag data inside your admin UI.
Sits on top of the shared artisanpack-ui/google base package for OAuth2 authentication, encrypted token storage, and scope management.
Installation
composer require artisanpack-ui/google-tag-manager
The service provider and GoogleTagManager facade are auto-discovered. The base artisanpack-ui/google package is pulled in automatically.
Quick start
Client-side container snippet — set your container ID and drop the directive in your layout:
GTM_CONTAINER_ID=GTM-XXXXXXX
<!DOCTYPE html> <html> <head> @gtmSnippetHead </head> <body> @gtmSnippetBody {{-- ... --}} </body> </html>
Admin components — after configuring the base artisanpack-ui/google package and connecting a user:
<livewire:google-tag-manager::container-overview account-id="123456" container-id="654321" /> <livewire:google-tag-manager::tag-list account-id="123456" container-id="654321" workspace-id="1" />
React and Vue equivalents ship in resources/js/.
Documentation
Full documentation lives in the docs/ directory:
- Home
- Getting Started
- Installation
- Snippet Installer
- Components — Livewire, React, Vue
- CMS Framework Widgets
- API Reference
- Testing
- FAQ
- Contributing
Contributing
Please read through the contributing guidelines to learn more about how you can contribute to this project.
License
ArtisanPack UI Google Tag Manager is open-source software licensed under the MIT license.