inpsyde / google-tag-manager
Adds the Google Tag Manager container snippet to your site and populates the Google Tag Manager Data Layer.
Installs: 30 441
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 5
Forks: 5
Type:wordpress-plugin
Requires
- php: >=8.0
- brain/nonces: 1.0.*
- chrico/wp-fields: ~2.3
- inpsyde/assets: ~2.5
- inpsyde/modularity: ~1.7
Requires (Dev)
Suggests
- inpsyde/wonolog: You may want to install Wonolog to enable logging for this package.
This package is auto-updated.
Last update: 2024-03-29 04:11:41 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
Documentation can be found in readme.txt.
Requirements
- WordPress >= 4.6.
- PHP 8.0 or higher.
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:dev
For more information, please refer to the Symfony Encore docs
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
- Behat Docs: http://docs.behat.org/en/latest/guides.html
- Wordhat: https://wordhat.info/
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
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.