inpsyde / google-tag-manager
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.
Installs: 44 620
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 6
Forks: 2
Type:wordpress-plugin
Requires
- php: >=8.1
- inpsyde/modularity: ~1.7
Requires (Dev)
- brain/monkey: ^2
- inpsyde/php-coding-standards: 2.0.0-beta.4
- php-stubs/wordpress-stubs: >=6.6@stable
- phpunit/phpunit: ~10
- vimeo/psalm: >=4.8.1@stable
Suggests
- inpsyde/wonolog: You may want to install Wonolog to enable logging for this package.
This package is auto-updated.
Last update: 2024-11-11 15:31:26 UTC
README
Inpsyde Google Tag Manager inserts the GTM Container Code on every page of your WordPress site and writes data to the Data Layer.
Documentation
How to start development
This plugin does not include build assets and PHP-dependencies. Therefore, after loading that repository via Composer or git checkout you have to install them.
With Yarn:
yarn install && yarn build
Testing & Quality
To run all tests you've to install composer dev-dependencies first.
PHPCS
vendor/bin/phpcs
PHPUnit
vendor/bin/phpunit
How to create a release
To create a release go to the <target>-built
branch and create the tag and the release.
Example 1: A change is going to be added to master
branch.
A developer makes a PR to master
branch adding a feature.
Once it gets merged a build & push workflow will be triggered.
[bot] This workflow will create a build and push it to master-built
branch.
[human] Then create a tag on master-built
and then a release.
Example 2: A change is going to be added to 1.x
branch.
A developer makes a PR to 1.x
branch adding a feature.
Once it gets merged a build & push workflow will be triggered.
[bot] This workflow will create a build and push it to 1.x-built
branch.
[human] Then create a tag on 1.x-built
and then a release.
License
This repository is a free software, and is released under the terms of the GNU General Public License version 2 or (at your option) any later version. See LICENSE for complete license.