inpsyde/google-tag-manager

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

Installs: 44 604

Dependents: 0

Suggesters: 0

Security: 0

Stars: 17

Watchers: 6

Forks: 2

Type:wordpress-plugin

3.0.0-beta.2 2024-10-04 13:28 UTC

README

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

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.