inpsyde / google-tag-manager
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.
Installs: 45 575
Dependents: 0
Suggesters: 0
Security: 0
Stars: 18
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.
- dev-master
- 3.0.0-beta.2
- 3.0.0-beta.1
- 2.x-dev
- 2.2.0
- 2.1.0
- 2.0.0
- 1.x-dev
- 1.6.2
- 1.6.1
- 1.6
- 1.5
- 1.4.0
- 1.3.1
- 1.3
- 1.2.1
- 1.2
- 1.1
- 1.0
- dev-dependabot/npm_and_yarn/nanoid-3.3.8
- dev-update/wp-6.6
- dev-wordpress_js_dependencies_update
- dev-2.x-built
- dev-master-built
- dev-fix-blueprint-wp-version
- dev-insta-wp-built
- dev-insta-wp
This package is auto-updated.
Last update: 2024-12-15 20:22:19 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.