inpsyde / google-tag-manager
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.
Installs: 55 586
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 3
Forks: 2
Type:wordpress-plugin
pkg:composer/inpsyde/google-tag-manager
Requires
- php: >=8.1
- inpsyde/modularity: ~1.7
Requires (Dev)
- brain/monkey: ^2
- phpstan/phpstan: 2.1.16
- phpunit/phpunit: ~10
- syde/phpcs: 1.0.0-rc.1
- szepeviktor/phpstan-wordpress: ^2
Suggests
- inpsyde/wonolog: You may want to install Wonolog to enable logging for this package.
- dev-dev/master
- 3.0.0
- 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
- v1.6.3.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/wordpress/api-fetch-7.33.0
- dev-dependabot/npm_and_yarn/wordpress/blocks-15.6.0
- dev-dependabot/npm_and_yarn/wordpress/element-6.33.0
- dev-master
- dev-dependabot/npm_and_yarn/wordpress/block-library-9.33.1
- dev-fix-documentation
- dev-dependabot/npm_and_yarn/npm_and_yarn-c4c18b7df2
- dev-fix-blueprint
- dev-change-build-workflow
- dev-dev/change-build-workflow
- dev-dependabot/npm_and_yarn/wordpress/edit-post-8.33.2
- dev-dependabot/npm_and_yarn/wordpress/edit-post-8.33.0
- dev-dependabot/npm_and_yarn/wordpress/env-10.33.0
- dev-dependabot/npm_and_yarn/wordpress/server-side-render-6.9.0
- dev-dependabot/npm_and_yarn/wordpress/compose-7.33.0
- dev-dependabot/composer/phpstan/phpstan-2.1.31
- dev-dependabot/npm_and_yarn/npm_and_yarn-0d35e9a10f
- dev-master-built
- dev-SPP-105-2
- dev-fix/decoded-special-chars
- dev-test-test-workflow
- dev-update/wp-6.6
- dev-wordpress_js_dependencies_update
- dev-2.x-built
- dev-dev/2.x
- dev-fix-blueprint-wp-version
- dev-dev/1.x
This package is auto-updated.
Last update: 2025-10-27 16:58:52 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
Note
The master branch contains a production-ready plugin with pre-built assets, but development happens on other branches.
For development, clone the repository (which uses the default development branch) and run the build process to generate the required assets and install PHP dependencies before you begin coding:
cd google-tag-manager composer install npm install && npm run 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> 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
dev/masterbranch adding a feature. - Once it gets merged, a maintainer triggers the
Build and distributeworkflow providing the version number to be released. - [bot] This workflow will create a build and push it to
masterbranch. - [human] Then create a tag on
masterand then a release.
Example 2: A change is going to be added to 1.x branch.
- A developer makes a PR to
dev/1.xbranch adding a feature. - Once it gets merged, a maintainer triggers the
Build and distributeworkflow providing the version number to be released. - [bot] This workflow will create a build and push it to
1.xbranch. - [human] Then create a tag on
1.xand then a release.
Copyright and License
This package is free software distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see LICENSE.
