jeffersongoncalves/laravel-gtm

This plugin seamlessly integrates Google Tag Manager (GTM) into your website, enabling streamlined management and deployment of marketing tags, analytics, and tracking pixels. With easy-to-implement script inclusion and customizable options, it simplifies the process of monitoring user interactions

1.0.0 2025-05-02 01:21 UTC

This package is auto-updated.

Last update: 2025-05-02 01:24:56 UTC


README

Laravel Google Tag Manager

Laravel Google Tag Manager

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

This plugin seamlessly integrates Google Tag Manager (GTM) into your website, enabling streamlined management and deployment of marketing tags, analytics, and tracking pixels. With easy-to-implement script inclusion and customizable options, it simplifies the process of monitoring user interactions and gathering valuable insights without altering your site's core code. Perfect for marketers and developers looking to enhance their tracking capabilities with minimal effort.

Installation

You can install the package via composer:

composer require jeffersongoncalves/laravel-gtm

Usage

Publish config file.

php artisan vendor:publish --tag=gtm-config

Add start head template.

@include('gtm::head')

Add start body template.

@include('gtm::body')

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.