WooCommerce Google Analytics Integration - Version 1.4.10

Version Description

  • 2019-07-10 =
  • Fix - Ensure universal analytics pageview doesnt occur if standard tracking is disabled.
Download this release

Release Info

Developer ferdev
Plugin Icon 128x128 WooCommerce Google Analytics Integration
Version 1.4.10
Comparing to
See all releases

Code changes from version 1.4.9 to 1.4.10

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  *** Changelog ***
2
 
 
 
 
3
  = 1.4.9 - 2019-04-16 =
4
  * Tweak - WC 3.6 compatibility.
5
 
1
  *** Changelog ***
2
 
3
+ = 1.4.10 - 2019-07-10 =
4
+ * Fix - Ensure universal analytics pageview doesn’t occur if standard tracking is disabled.
5
+
6
  = 1.4.9 - 2019-04-16 =
7
  * Tweak - WC 3.6 compatibility.
8
 
includes/class-wc-google-analytics-js.php CHANGED
@@ -197,7 +197,9 @@ class WC_Google_Analytics_JS {
197
  * Sends the pageview last thing (needed for things like addImpression)
198
  */
199
  public static function universal_analytics_footer() {
200
- wc_enqueue_js( "" . self::tracker_var() . "( 'send', 'pageview' ); ");
 
 
201
  }
202
 
203
  /**
197
  * Sends the pageview last thing (needed for things like addImpression)
198
  */
199
  public static function universal_analytics_footer() {
200
+ if ( 'yes' === self::get( 'ga_standard_tracking_enabled' ) ) {
201
+ wc_enqueue_js( "" . self::tracker_var() . "( 'send', 'pageview' ); " );
202
+ }
203
  }
204
 
205
  /**
languages/woocommerce-google-analytics-integration.pot CHANGED
@@ -2,11 +2,11 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Google Analytics Integration 1.4.9\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-google-analytics-integration/"
8
  "issues\n"
9
- "POT-Creation-Date: 2019-04-16 23:15:30+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Google Analytics Integration 1.4.10\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://github.com/woocommerce/woocommerce-google-analytics-integration/"
8
  "issues\n"
9
+ "POT-Creation-Date: 2019-07-10 20:15:32+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: woocommerce, claudiosanches, bor0, royho, laurendavissmith001, c-s
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.8
5
  Tested up to: 5.1
6
- Stable tag: 1.4.9
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -68,6 +68,9 @@ Exact wording depends on the national data privacy laws and should be adjusted.
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 1.4.9 - 2019-04-16 =
72
  * Tweak - WC 3.6 compatibility.
73
 
3
  Tags: woocommerce, google analytics
4
  Requires at least: 3.8
5
  Tested up to: 5.1
6
+ Stable tag: 1.4.10
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
68
 
69
  == Changelog ==
70
 
71
+ = 1.4.10 - 2019-07-10 =
72
+ * Fix - Ensure universal analytics pageview doesn’t occur if standard tracking is disabled.
73
+
74
  = 1.4.9 - 2019-04-16 =
75
  * Tweak - WC 3.6 compatibility.
76
 
woocommerce-google-analytics-integration.php CHANGED
@@ -5,7 +5,7 @@
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.4.9
9
  * WC requires at least: 2.1
10
  * WC tested up to: 3.6
11
  * License: GPLv2 or later
@@ -29,7 +29,7 @@ if ( ! class_exists( 'WC_Google_Analytics_Integration' ) ) {
29
  *
30
  * @var string
31
  */
32
- const VERSION = '1.4.9';
33
 
34
  /**
35
  * Instance of this class.
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.4.10
9
  * WC requires at least: 2.1
10
  * WC tested up to: 3.6
11
  * License: GPLv2 or later
29
  *
30
  * @var string
31
  */
32
+ const VERSION = '1.4.10';
33
 
34
  /**
35
  * Instance of this class.