Helick GTM
Plugin for Google Tag Manager integration
★ 1stars
169composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/helick/gtm/archive/refs/heads/master.zipAlso on Packagist as helick/gtm:
composer require helick/gtmFrom the readme
Helick Google Tag Manager
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-downloads]
[![Software License][ico-license]](LICENSE.md)
[![Quality Score][ico-code-quality]][link-code-quality]
Google Tag Manager integration.
Requirements
Make sure all dependencies have been installed before moving on:
PHP = 7.1
Composer
Install
Install via Composer:
Update your application config by declaring the following:
Update your env variables by declaring the following:
Usage
To support the fallback iframe for devices without javascript add the following code just after the opening tag in your theme:
Data layer
Google Tag Manager offers a data layer which allows you pass arbitrary data that can be used to modify which tags are added to your site.
This plugin adds some default information such as post, tags and categories and provides a simple filter for adding in your own custom data.
Event tracking
To deactivate the event tracking you may declare the following:
By default the event listener script will look for the elements on the page with special data attributes in your markup and listen for the specified event to push
Read the full README on GitHub →
Releases
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.