WooCommerce Google Analytics Integration - Version 1.5.7

Version Description

  • 2022-01-13 =
  • Fix - Activation error when WC was disabled.
  • Tweak - WC 6.1 compatibility.
Download this release

Release Info

Developer automattic
Plugin Icon 128x128 WooCommerce Google Analytics Integration
Version 1.5.7
Comparing to
See all releases

Code changes from version 1.5.6 to 1.5.7

assets/js/admin-ga-settings.min.js DELETED
@@ -1 +0,0 @@
1
- jQuery(document).ready(function(n){var o=n("#woocommerce_google_analytics_ga_enhanced_ecommerce_tracking_enabled"),g=n("#woocommerce_google_analytics_ga_use_universal_analytics"),t=n("#woocommerce_google_analytics_ga_gtag_enabled");function e(){var e=o.is(":checked"),c=g.is(":checked"),a=t.is(":checked");_(n(".legacy-setting"),!a),_(n(".enhanced-setting"),e&&(c||a)),_(o,c||a),_(g,!a)}function _(e,c){c?e.closest("tr").show():e.closest("tr").hide()}e(),o.change(e),g.change(e),t.change(e)});
 
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  *** Changelog ***
2
 
 
 
 
 
3
  = 1.5.6 - 2021-12-29 =
4
  * Fix - Confirm order key before displaying transaction tracking code.
5
 
1
  *** Changelog ***
2
 
3
+ = 1.5.7 - 2022-01-13 =
4
+ * Fix - Activation error when WC was disabled.
5
+ * Tweak - WC 6.1 compatibility.
6
+
7
  = 1.5.6 - 2021-12-29 =
8
  * Fix - Confirm order key before displaying transaction tracking code.
9
 
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendavissmith001, c-shultz
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.9
5
- Tested up to: 5.8
6
- Stable tag: 1.5.6
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -60,6 +60,10 @@ Exact wording depends on the national data privacy laws and should be adjusted.
60
 
61
  == Changelog ==
62
 
 
 
 
 
63
  = 1.5.6 - 2021-12-29 =
64
  * Fix - Confirm order key before displaying transaction tracking code.
65
 
2
  Contributors: woocommerce, automattic, claudiosanches, bor0, royho, laurendavissmith001, c-shultz
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.9
5
+ Tested up to: 5.9
6
+ Stable tag: 1.5.7
7
  License: GPLv3
8
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
9
 
60
 
61
  == Changelog ==
62
 
63
+ = 1.5.7 - 2022-01-13 =
64
+ * Fix - Activation error when WC was disabled.
65
+ * Tweak - WC 6.1 compatibility.
66
+
67
  = 1.5.6 - 2021-12-29 =
68
  * Fix - Confirm order key before displaying transaction tracking code.
69
 
woocommerce-google-analytics-integration.php CHANGED
@@ -5,9 +5,9 @@
5
  * Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com
8
- * Version: 1.5.6
9
  * WC requires at least: 3.2
10
- * WC tested up to: 6.0
11
  * Tested up to: 5.9
12
  * License: GPLv2 or later
13
  * Text Domain: woocommerce-google-analytics-integration
@@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
20
 
21
  if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
22
 
23
- define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.6' ); // WRCS: DEFINED_VERSION.
24
 
25
  // Maybe show the GA Pro notice on plugin activation.
26
  register_activation_hook(
@@ -43,6 +43,7 @@ if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
43
  */
44
  public function __construct() {
45
  if ( ! class_exists( 'WooCommerce' ) ) {
 
46
  return;
47
  }
48
 
@@ -137,7 +138,7 @@ if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
137
  */
138
  public function maybe_show_ga_pro_notices() {
139
  // Notice was already shown
140
- if ( get_option( 'woocommerce_google_analytics_pro_notice_shown', false ) ) {
141
  return;
142
  }
143
 
5
  * Description: Allows Google Analytics tracking code to be inserted into WooCommerce store pages.
6
  * Author: WooCommerce
7
  * Author URI: https://woocommerce.com
8
+ * Version: 1.5.7
9
  * WC requires at least: 3.2
10
+ * WC tested up to: 6.1
11
  * Tested up to: 5.9
12
  * License: GPLv2 or later
13
  * Text Domain: woocommerce-google-analytics-integration
20
 
21
  if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
22
 
23
+ define( 'WC_GOOGLE_ANALYTICS_INTEGRATION_VERSION', '1.5.7' ); // WRCS: DEFINED_VERSION.
24
 
25
  // Maybe show the GA Pro notice on plugin activation.
26
  register_activation_hook(
43
  */
44
  public function __construct() {
45
  if ( ! class_exists( 'WooCommerce' ) ) {
46
+ add_action( 'admin_notices', [ $this, 'woocommerce_missing_notice' ] );
47
  return;
48
  }
49
 
138
  */
139
  public function maybe_show_ga_pro_notices() {
140
  // Notice was already shown
141
+ if ( ! class_exists( 'WooCommerce' ) || get_option( 'woocommerce_google_analytics_pro_notice_shown', false ) ) {
142
  return;
143
  }
144