Skip to content

inpsyde/google-tag-manager

Inpsyde Google Tag Manager

Version Status Build codecov Downloads License WordPress Playground Demo

Inpsyde Google Tag Manager inserts the GTM Container Code on every page of your WordPress site and writes data to the Data Layer.

Inpsyde Google Tag Manager

Documentation

  1. Intro
  2. Hooks
  3. Collectors
  4. FAQ

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/master branch adding a feature.
  • Once it gets merged, a maintainer triggers the Build and distribute workflow providing the version number to be released.
  • [bot] This workflow will create a build and push it to master branch.
  • [human] Then create a tag on master and then a release.

Example 2: A change is going to be added to 1.x branch.

  • A developer makes a PR to dev/1.x branch adding a feature.
  • Once it gets merged, a maintainer triggers the Build and distribute workflow providing the version number to be released.
  • [bot] This workflow will create a build and push it to 1.x branch.
  • [human] Then create a tag on 1.x and 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.

About

Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 13

Languages