Skip to content

Commit dab04cb

Browse files
authored
Merge pull request #543 from woocommerce/release/2.1.21
Release 2.1.21
2 parents 56c280c + 1517e6f commit dab04cb

File tree

6 files changed

+25
-29
lines changed

6 files changed

+25
-29
lines changed

changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
*** Changelog ***
22

3+
= 2.1.21 - 2026-02-10 =
4+
* Tweak - WC 10.5 compatibility.
5+
* Update - Require WooCommerce 10.4+.
6+
37
= 2.1.20 - 2026-01-14 =
48
* Add WooCommerce 10.4+ Interactivity API Mini Cart compatibility.
59
* Dev - updated vulnerable packages.
610
* Tweak - WordPress 6.9 compatibility.
711
* Update - Require WooCommerce 10.3+.
812
* Update - Require WordPress 6.8+.
913

14+
= 2.1.19 - 2025-10-30 =
15+
* Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts.
16+
* Update - Require WooCommerce 10.2+.
17+
1018
= 2.1.18 - 2025-10-01 =
1119
* Tweak - Don't throw errors when the product ID is not found for legacy Ajax add-to-cart.
1220
* Tweak - WC 10.2 compatibility.

docs/Hooks.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,53 +8,53 @@ A list of hooks, e.g. `actions` and `filters`, that are defined or used in this
88

99
**Used in**:
1010

11-
- [class-wc-google-analytics.php#L272](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-google-analytics.php#L272)
11+
- [class-wc-google-analytics.php#L272](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-google-analytics.php#L272)
1212

1313
## woocommerce_ga_gtag_config
1414

1515
**Type**: filter
1616

1717
**Used in**:
1818

19-
- [class-wc-google-gtag-js.php#L274](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-google-gtag-js.php#L274)
19+
- [class-wc-google-gtag-js.php#L274](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-google-gtag-js.php#L274)
2020

2121
## woocommerce_ga_gtag_consent_modes
2222

2323
**Type**: filter
2424

2525
**Used in**:
2626

27-
- [class-wc-google-gtag-js.php#L368](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-google-gtag-js.php#L368)
27+
- [class-wc-google-gtag-js.php#L368](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-google-gtag-js.php#L368)
2828

2929
## woocommerce_ga_product_identifier
3030

3131
**Type**: filter
3232

3333
**Used in**:
3434

35-
- [class-wc-abstract-google-analytics-js.php#L170](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-abstract-google-analytics-js.php#L170)
35+
- [class-wc-abstract-google-analytics-js.php#L170](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-abstract-google-analytics-js.php#L170)
3636

3737
## woocommerce_gtag_snippet
3838

3939
**Type**: filter
4040

4141
**Used in**:
4242

43-
- [class-wc-google-gtag-js.php#L90](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-google-gtag-js.php#L90)
43+
- [class-wc-google-gtag-js.php#L90](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-google-gtag-js.php#L90)
4444

4545
## woocommerce_gtag_tracker_variable
4646

4747
**Type**: filter
4848

4949
**Used in**:
5050

51-
- [class-wc-google-gtag-js.php#L264](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/includes/class-wc-google-gtag-js.php#L264)
51+
- [class-wc-google-gtag-js.php#L264](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/includes/class-wc-google-gtag-js.php#L264)
5252

5353
## plugin_locale
5454

5555
**Type**: filter
5656

5757
**Used in**:
5858

59-
- [woocommerce-google-analytics-integration.php#L145](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/749bfb0882004dc75bb467bf91de47c3326b7e7b/woocommerce-google-analytics-integration.php#L145)
59+
- [woocommerce-google-analytics-integration.php#L145](https://github.com/woocommerce/woocommerce-google-analytics-integration/blob/6f6f2a91de376de919b97be4b6349a9824a4df6b/woocommerce-google-analytics-integration.php#L145)
6060

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "woocommerce-google-analytics-integration",
33
"title": "Google Analytics for WooCommerce",
4-
"version": "2.1.20",
4+
"version": "2.1.21",
55
"license": "GPL-2.0",
66
"homepage": "https://wordpress.org/plugins/woocommerce-google-analytics-integration/",
77
"repository": {

readme.txt

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendaviss
33
Tags: woocommerce, google analytics
44
Requires at least: 6.8
55
Tested up to: 6.9
6-
Stable tag: 2.1.20
6+
Stable tag: 2.1.21
77
License: GPLv3
88
License URI: https://www.gnu.org/licenses/gpl-3.0.html
99

@@ -48,6 +48,10 @@ Duplicate Google Analytics code causes a conflict in tracking. Remove any other
4848

4949
== Changelog ==
5050

51+
= 2.1.21 - 2026-02-10 =
52+
* Tweak - WC 10.5 compatibility.
53+
* Update - Require WooCommerce 10.4+.
54+
5155
= 2.1.20 - 2026-01-14 =
5256
* Add WooCommerce 10.4+ Interactivity API Mini Cart compatibility.
5357
* Dev - updated vulnerable packages.
@@ -59,20 +63,4 @@ Duplicate Google Analytics code causes a conflict in tracking. Remove any other
5963
* Fix - Add safe script tag encoding flags to all `wp_json_encode()` calls in inline scripts.
6064
* Update - Require WooCommerce 10.2+.
6165

62-
= 2.1.18 - 2025-10-01 =
63-
* Tweak - Don't throw errors when the product ID is not found for legacy Ajax add-to-cart.
64-
* Tweak - WC 10.2 compatibility.
65-
* Update - Require WooCommerce 10.1+.
66-
67-
= 2.1.17 - 2025-08-12 =
68-
* Dev - Updated vulnerable dependencies.
69-
* Tweak - WC 10.1 compatibility.
70-
* Update - Require WooCommerce 10.0+.
71-
* Update - Require WordPress 6.7+.
72-
73-
= 2.1.16 - 2025-07-01 =
74-
* Tweak - WC 10.0 compatibility.
75-
* Update - Require WooCommerce 9.5+.
76-
* Update - Require WordPress 6.6+.
77-
7866
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-google-analytics-integration/trunk/changelog.txt).

woocommerce-google-analytics-integration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
66
* Author: WooCommerce
77
* Author URI: https://woocommerce.com
8-
* Version: 2.1.20
8+
* Version: 2.1.21
99
* WC requires at least: 10.4
1010
* WC tested up to: 10.5
1111
* Requires at least: 6.8
@@ -26,7 +26,7 @@
2626

2727
if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
2828

29-
define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.20' ); // WRCS: DEFINED_VERSION.
29+
define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '2.1.21' ); // WRCS: DEFINED_VERSION.
3030
define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_MIN_WC_VER', '10.4' );
3131

3232
// Maybe show the GA Pro notice on plugin activation.

0 commit comments

Comments
 (0)