WordPress plugin: Provides the integration between WooCommerce and Google Analytics.
Will be required for WooCommerce shops using the integration from WooCommerce 2.1 and up.
WooCommerce Google Analytics Integration utilizes npm scripts for task management utilities.
npm run build
- Runs the tasks necessary for a release. These may include building JavaScript, SASS, CSS minification, and language files.
cd
into the woocommerce-google-analytics-integration/
plugin directorycomposer install
bin/install-unit-tests.sh <db-name> <db-user> <db-pass> [db-host] [wp-version] [wc-version] [skip-database-creation]
e.g. bin/install-unit-tests.sh wordpress_test root root localhost latest latest
XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text
to run all unit testFor more info see: WordPress.org > Plugin Unit Tests.
composer install
(if you haven't done so already)npm run lint:php
Alternatively, run npm run lint:php:diff
to run coding standards checks agains the current git diff. An explanation of output can be found here e.g. what are the S's?
Download Details:
Author: woocommerce
Official Github: https://github.com/woocommerce/woocommerce-google-analytics-integration
License: