Enhanced Ecommerce Google Analytics Plugin for WooCommerce - Version 2.3.1

Version Description

  • 29/01/2020
    • Compatibility with WooCommerce 3.9.1
    • Compatibility with Wordpress 5.3.2
    • Minor Bug Fixes
Download this release

Release Info

Developer Tatvic
Plugin Icon 128x128 Enhanced Ecommerce Google Analytics Plugin for WooCommerce
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

admin/images/new-1.jpg DELETED
Binary file
admin/images/new.gif DELETED
Binary file
enhanced-ecommerce-google-analytics.php CHANGED
@@ -16,7 +16,7 @@
16
  * Plugin Name: Enhanced E-commerce for Woocommerce store
17
  * Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
18
  * Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
19
- * Version: 2.3.0
20
  * Author: Tatvic
21
  * Author URI: www.tatvic.com
22
  * License: GPL-2.0+
@@ -24,7 +24,7 @@
24
  * Text Domain: www.tatvic.com
25
  * Domain Path: /languages
26
  * WC requires at least: 1.4.1
27
- * WC tested up to: 3.8.0
28
  */
29
 
30
  /**
@@ -39,7 +39,7 @@ if ( ! defined( 'WPINC' ) ) {
39
  * Start at version 1.0.0 and use SemVer - https://semver.org
40
  * Rename this for your plugin and update it as you release new versions.
41
  */
42
- define( 'PLUGIN_NAME_VERSION', '2.3.0' );
43
  /**
44
  * The code that runs during plugin activation.
45
  * This action is documented in includes/class-enhanced-ecommerce-google-analytics-activator.php
16
  * Plugin Name: Enhanced E-commerce for Woocommerce store
17
  * Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
18
  * Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
19
+ * Version: 2.3.1
20
  * Author: Tatvic
21
  * Author URI: www.tatvic.com
22
  * License: GPL-2.0+
24
  * Text Domain: www.tatvic.com
25
  * Domain Path: /languages
26
  * WC requires at least: 1.4.1
27
+ * WC tested up to: 3.9.1
28
  */
29
 
30
  /**
39
  * Start at version 1.0.0 and use SemVer - https://semver.org
40
  * Rename this for your plugin and update it as you release new versions.
41
  */
42
+ define( 'PLUGIN_NAME_VERSION', '2.3.1' );
43
  /**
44
  * The code that runs during plugin activation.
45
  * This action is documented in includes/class-enhanced-ecommerce-google-analytics-activator.php
public/class-enhanced-ecommerce-google-analytics-public.php CHANGED
@@ -18,7 +18,7 @@
18
  *
19
  * @package Enhanced_Ecommerce_Google_Analytics
20
  * @subpackage Enhanced_Ecommerce_Google_Analytics/public
21
- * @author Chiranjiv Pathak <chiranjiv@tatvic.com>
22
  */
23
  class Enhanced_Ecommerce_Google_Analytics_Public {
24
  /**
@@ -28,7 +28,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
28
  * @return void
29
  */
30
  //set plugin version
31
- public $tvc_eeVer = '2.3.0';
32
 
33
  protected $tvc_aga;
34
 
@@ -242,10 +242,10 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
242
  $order = new WC_Order($order_id);
243
  //Get Applied Coupon Codes
244
  $coupons_list = '';
245
- if ($order->get_used_coupons()) {
246
- $coupons_count = count($order->get_used_coupons());
247
  $i = 1;
248
- foreach ($order->get_used_coupons() as $coupon) {
249
  $coupons_list .= $coupon;
250
  if ($i < $coupons_count)
251
  $coupons_list .= ', ';
@@ -263,7 +263,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
263
  // Order items
264
  if ($order->get_items()) {
265
  foreach ($order->get_items() as $item) {
266
- $_product = $order->get_product_from_item($item);
267
  if (isset($_product->variation_data)) {
268
  $categories=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
269
  } else {
18
  *
19
  * @package Enhanced_Ecommerce_Google_Analytics
20
  * @subpackage Enhanced_Ecommerce_Google_Analytics/public
21
+ * @author Chetan Rode <chetan@tatvic.com>
22
  */
23
  class Enhanced_Ecommerce_Google_Analytics_Public {
24
  /**
28
  * @return void
29
  */
30
  //set plugin version
31
+ public $tvc_eeVer = '2.3.1';
32
 
33
  protected $tvc_aga;
34
 
242
  $order = new WC_Order($order_id);
243
  //Get Applied Coupon Codes
244
  $coupons_list = '';
245
+ if ($order->get_coupon_codes()) {
246
+ $coupons_count = count($order->get_coupon_codes());
247
  $i = 1;
248
+ foreach ($order->get_coupon_codes() as $coupon) {
249
  $coupons_list .= $coupon;
250
  if ($i < $coupons_count)
251
  $coupons_list .= ', ';
263
  // Order items
264
  if ($order->get_items()) {
265
  foreach ($order->get_items() as $item) {
266
+ $_product = $item->get_product();
267
  if (isset($_product->variation_data)) {
268
  $categories=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
269
  } else {
readme.txt CHANGED
@@ -6,10 +6,10 @@ Tags: Google Analytics, Universal Analytics, Enhanced E-commerce, E-commerce, e-
6
  Author URI: https://www.tatvic.com/
7
  Author: Tatvic
8
  Requires at least: 1.4.1
9
- Tested up to: 5.3
10
  Requires PHP: 5.6 or Higher
11
- Stable tag: 2.3.0
12
- Version: 2.3.0
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
@@ -203,6 +203,11 @@ To avoid sending your own transaction data or sessions data in Google Analytics,
203
 
204
  == Changelog ==
205
 
 
 
 
 
 
206
  = 2.3.0 - 02/12/2019 =
207
  * Compatibility with WooCommerce 3.8.0
208
  * Compatibility with Wordpress 5.3
6
  Author URI: https://www.tatvic.com/
7
  Author: Tatvic
8
  Requires at least: 1.4.1
9
+ Tested up to: 5.3.2
10
  Requires PHP: 5.6 or Higher
11
+ Stable tag: 2.3.1
12
+ Version: 2.3.1
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
203
 
204
  == Changelog ==
205
 
206
+ = 2.3.1 - 29/01/2020
207
+ * Compatibility with WooCommerce 3.9.1
208
+ * Compatibility with Wordpress 5.3.2
209
+ * Minor Bug Fixes
210
+
211
  = 2.3.0 - 02/12/2019 =
212
  * Compatibility with WooCommerce 3.8.0
213
  * Compatibility with Wordpress 5.3