From 985475f0ce9d84388b85ccdc3794f57d58b11a25 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:44:38 +0000 Subject: [PATCH 1/5] Start `release/2.0.5`. From ebf6a21e1404925fba6cc2167d35ac5de29c1609 Mon Sep 17 00:00:00 2001 From: Martyn Jones Date: Thu, 4 Apr 2024 18:46:32 +0100 Subject: [PATCH 2/5] Update readme.txt --- readme.txt | 9 --------- 1 file changed, 9 deletions(-) diff --git a/readme.txt b/readme.txt index 14c0c07d..07cfde06 100644 --- a/readme.txt +++ b/readme.txt @@ -59,13 +59,4 @@ Duplicate Google Analytics code causes a conflict in tracking. Remove any other * Tweak - WC 8.7 compatibility. * Tweak - WP 6.5 compatibility. -= 2.0.2 - 2024-03-12 = -* Dev - Add E2E testing to track events across all page types. -* Fix - Add to cart & select content events for All Products Block. -* Fix - Get correct variation data when formatting product. -* Fix - Handle AJAX add to cart for simple products. -* Fix - Purchase price format. -* Fix - Track purchase transaction ID. -* Fix - Typo with undefined variable. - [See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-google-analytics-integration/trunk/changelog.txt). From 8611de2a3cbf4027cb169be1c1237aaef492b3c1 Mon Sep 17 00:00:00 2001 From: Martyn Jones Date: Thu, 4 Apr 2024 18:53:46 +0100 Subject: [PATCH 3/5] Product version bump update --- package-lock.json | 2 +- package.json | 2 +- readme.txt | 2 +- woocommerce-google-analytics-integration.php | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f0197244..7ce126d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "woocommerce-google-analytics-integration", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index a6d3621a..0ccebefe 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "woocommerce-google-analytics-integration", "title": "Google Analytics for WooCommerce", - "version": "2.0.4", + "version": "2.0.5", "license": "GPL-2.0", "homepage": "https://wordpress.org/plugins/woocommerce-google-analytics-integration/", "repository": { diff --git a/readme.txt b/readme.txt index 07cfde06..f79ac44b 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendaviss Tags: woocommerce, google analytics Requires at least: 6.2 Tested up to: 6.5 -Stable tag: 2.0.4 +Stable tag: 2.0.5 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html diff --git a/woocommerce-google-analytics-integration.php b/woocommerce-google-analytics-integration.php index 9485b8f4..a571f5c3 100644 --- a/woocommerce-google-analytics-integration.php +++ b/woocommerce-google-analytics-integration.php @@ -5,7 +5,7 @@ * Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages. * Author: WooCommerce * Author URI: https://woo.com - * Version: 2.0.4 + * Version: 2.0.5 * WC requires at least: 8.4 * WC tested up to: 8.7 * Requires at least: 6.2 @@ -24,7 +24,7 @@ if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) { - define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.0.4' ); // WRCS: DEFINED_VERSION. + define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.0.5' ); // WRCS: DEFINED_VERSION. define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '6.8' ); // Maybe show the GA Pro notice on plugin activation. From c9d22a426f09b6aaea40b5b7a02dab97b8313729 Mon Sep 17 00:00:00 2001 From: Martyn Jones Date: Thu, 4 Apr 2024 18:53:54 +0100 Subject: [PATCH 4/5] Changelog update --- changelog.txt | 4 ++++ readme.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/changelog.txt b/changelog.txt index 1cc8e1d1..fe132c3c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ *** Changelog *** += 2.0.5 - 2024-04-04 = +* Tweak - Register `woocommerce-google-analytics-integration` script earlier, so other extensions can plug in. +* Update - Separate the site tag from the event tracking file and delay execution until DOMContentLoaded. + = 2.0.4 - 2024-03-26 = * Dev - Add QIT workflow. * Dev - E2E tests for the All Products block. diff --git a/readme.txt b/readme.txt index f79ac44b..3a2a07cc 100644 --- a/readme.txt +++ b/readme.txt @@ -48,6 +48,10 @@ Duplicate Google Analytics code causes a conflict in tracking. Remove any other == Changelog == += 2.0.5 - 2024-04-04 = +* Tweak - Register `woocommerce-google-analytics-integration` script earlier, so other extensions can plug in. +* Update - Separate the site tag from the event tracking file and delay execution until DOMContentLoaded. + = 2.0.4 - 2024-03-26 = * Dev - Add QIT workflow. * Dev - E2E tests for the All Products block. From 056683b610e1bb54d3391309657218fe909d9b26 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 4 Apr 2024 17:54:06 +0000 Subject: [PATCH 5/5] Update hooks documentation from branch. --- docs/Hooks.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/Hooks.md b/docs/Hooks.md index f95f39dc..b0e28f32 100644 --- a/docs/Hooks.md +++ b/docs/Hooks.md @@ -8,7 +8,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [class-wc-google-analytics.php#L269](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/includes/class-wc-google-analytics.php#L269) +- [class-wc-google-analytics.php#L269](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-google-analytics.php#L269) ## woocommerce_ga_gtag_config @@ -16,7 +16,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [class-wc-google-gtag-js.php#L236](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/includes/class-wc-google-gtag-js.php#L236) +- [class-wc-google-gtag-js.php#L268](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-google-gtag-js.php#L268) ## woocommerce_ga_gtag_consent_modes @@ -24,7 +24,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [class-wc-google-gtag-js.php#L320](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/includes/class-wc-google-gtag-js.php#L320) +- [class-wc-google-gtag-js.php#L362](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-google-gtag-js.php#L362) ## woocommerce_ga_product_identifier @@ -32,7 +32,15 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [class-wc-abstract-google-analytics-js.php#L170](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/includes/class-wc-abstract-google-analytics-js.php#L170) +- [class-wc-abstract-google-analytics-js.php#L170](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-abstract-google-analytics-js.php#L170) + +## woocommerce_gtag_snippet + +**Type**: filter + +**Used in**: + +- [class-wc-google-gtag-js.php#L90](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-google-gtag-js.php#L90) ## woocommerce_gtag_tracker_variable @@ -40,7 +48,7 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [class-wc-google-gtag-js.php#L209](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/includes/class-wc-google-gtag-js.php#L209) +- [class-wc-google-gtag-js.php#L258](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/includes/class-wc-google-gtag-js.php#L258) ## plugin_locale @@ -48,5 +56,5 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this **Used in**: -- [woocommerce-google-analytics-integration.php#L143](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/48b9f80a70e64f2750b50ff3d2027c4276b12db9/woocommerce-google-analytics-integration.php#L143) +- [woocommerce-google-analytics-integration.php#L143](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/c9d22a426f09b6aaea40b5b7a02dab97b8313729/woocommerce-google-analytics-integration.php#L143)