Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.01 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.01 KB

Magento 2 module for Google Tag Manager

========================================= Homepage: http://www.yireo.com/software/magento-extensions/googletagmanager2

Requirements:

  • Magento 2.0.0 Stable

Installation

We recommend composer to install this package. See our COMPOSER.md instructions.

If you want a manual copy instead, these are the steps:

  • Upload the files in the source/ folder to the folder app/code/Yireo/GoogleTagManager2 of your site
  • Run php -f bin/magento module:enable Yireo_GoogleTagManager2
  • Run php -f bin/magento setup:upgrade
  • Flush the Magento cache
  • Configure settings under Stores > Configuration > Advanced > Yireo GoogleTagManager
  • Done

Unit testing

This extension ships with PHPUnit tests. The generic PHPUnit configuration in Magento 2 will pick up on these tests. To only test Yireo extensions, copy the file phpunit.xml.yireo to your Magento folder dev/tests/unit. Next, from within that folder run PHPUnit. For instance:

phpunit -c phpunit.yireo.xml