Skip to content

woocommerce/woocommerce-google-analytics-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d7d9add · Dec 7, 2023
Aug 25, 2023
Dec 7, 2023
Jan 17, 2023
Oct 3, 2023
Dec 7, 2023
Nov 17, 2023
Jun 22, 2018
Nov 11, 2014
Mar 23, 2023
Apr 3, 2023
Apr 3, 2023
Aug 16, 2023
Jun 26, 2023
Nov 11, 2022
Aug 21, 2023
Oct 3, 2023
Mar 23, 2023
Jan 11, 2023
Oct 3, 2023
Oct 3, 2023
Mar 22, 2023
Jan 11, 2023
Oct 3, 2023
Nov 17, 2023
Oct 4, 2023

Repository files navigation

WooCommerce Google Analytics Integration

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.

NPM Scripts

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.

Unit tests

Running PHP unit tests in your local dev environment

  1. Install prerequisites: composer, git, xdebug, svn, wget or curl, mysqladmin
  2. cd into the woocommerce-google-analytics-integration/ plugin directory
  3. Run composer install
  4. Run 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
  5. Run XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text to run all unit test

For more info see: WordPress.org > Plugin Unit Tests.

Coding standards checks

  1. Run composer install (if you haven't done so already)
  2. Run 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?

Docs