Skip to content
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
bin
resources
src
tests
.gitignore
.travis.yml
CHANGELOG.md
LICENSE
README.md
behat.yml
composer.json
gulpfile.js
inpsyde-google-tag-manager.php
package.json
phpcs.xml.dist
phpunit.xml.dist
readme.txt
yarn.lock

README.md

Inpsyde Google Tag Manager

Version Status Build Downloads License

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

Documentation can be found in readme.txt.

Requirements

  • WordPress >= 4.6.
  • PHP 7 or higher.

How to start develop

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 run develop

With NPM:

npm install && npm run develop

The develop-script generates all JavaScript- and CSS-files and also runs composer install to create the autoloading.

Testing & Quality

To run all tests you've to install composer dev-dependencies first.

PHPCS

vendor/bin/phpcs

PHPUnit

vendor/bin/phpunit

This repository automatically generates a CodeCoverage-report into the tmp/-folder, which will not be committed.

Behat

To run Behat locally you need a running Selenium-Server. This package provides the vvo/selenium-standalone as devDependency via NPM. You can simple run npm install and start the selenium-task to have a running Selenium-Server.

For local testing you can use a behat.local.yml by copying the existing behat.yml. To run Behat locally you've to change the Behat\MinkExtension.base_url and PaulGibbs\WordpressBehatExtension.path to match your local setup.

vendor/bin/behat --config behat.local.yml

Note: Behat is testing WordPress currently as default installation with language "english".

License

Copyright (c) 2017 Inpsyde GmbH.

You can’t perform that action at this time.