Download the PHP package awcodes/gtm without Composer
On this page you can find all versions of the php package awcodes/gtm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package gtm
Short Description Easy integration of Google Tag Manager into your Laravel application.
License MIT
Homepage https://github.com/awcodes/gtm
Informations about the package gtm
Google Tag Manager for Laravel
Easy integration of Google Tag Manager into your Laravel application.
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
Usage
- Add your GTM_ID to your
.envfile - Simply add the blade components to your base layout files.
The enabled attribute is optional, but can be used to control the tags integration from blade files that extend the base layout. It accepts true/false. This can still be controlled globally via the .env file should you need to disable the integration global on different environments as well.
Testing
Development
Install dependencies:
Run the test suite:
Start the Workbench application:
The Workbench is available at http://127.0.0.1:8000 and renders both Google Tag Manager components. Add ?enabled=0 to exercise the documented per-layout opt-out.
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
- awcodes
- All Contributors
License
The MIT License (MIT). Please see License File for more information.