jeffersongoncalves/laravel-gtag

This Laravel package provides a straightforward integration of Google Analytics using Gtag into your Blade templates. It enables you to easily track website visits and user engagement, offering valuable insights into your site's performance. With minimal setup, you can leverage Gtag's powerful analy

1.0.0 2025-05-02 02:10 UTC

This package is auto-updated.

Last update: 2025-05-02 02:11:51 UTC


README

Laravel Google Analytics

Laravel Google Analytics

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

This Laravel package provides a straightforward integration of Google Analytics using Gtag into your Blade templates. It enables you to easily track website visits and user engagement, offering valuable insights into your site's performance. With minimal setup, you can leverage Gtag's powerful analytics features to better understand your audience and improve your website's effectiveness.

Installation

You can install the package via composer:

composer require jeffersongoncalves/laravel-gtag

Usage

Publish config file.

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

Add head template.

@include('gtag::script')

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.