Version Description
24/12/2021 =
Resolved JS issue which was reported in earlier version 4.5.3
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.5.4 |
Comparing to | |
See all releases |
Code changes from version 4.5.3 to 4.5.4
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -15,15 +15,15 @@
|
|
15 |
* Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
|
16 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
17 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
18 |
-
* Version: 4.5.
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
22 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
23 |
* Text Domain: www.tatvic.com
|
24 |
* Domain Path: /languages
|
25 |
-
* WC requires at least:
|
26 |
-
* WC tested up to:
|
27 |
*/
|
28 |
|
29 |
/**
|
@@ -37,7 +37,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
37 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
38 |
* Rename this for your plugin and update it as you release new versions.
|
39 |
*/
|
40 |
-
define( 'PLUGIN_TVC_VERSION', '4.5.
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
15 |
* Plugin Name: Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce
|
16 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
17 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
18 |
+
* Version: 4.5.4
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
22 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
23 |
* Text Domain: www.tatvic.com
|
24 |
* Domain Path: /languages
|
25 |
+
* WC requires at least: 3.0.0
|
26 |
+
* WC tested up to: 6.0.0
|
27 |
*/
|
28 |
|
29 |
/**
|
37 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
38 |
* Rename this for your plugin and update it as you release new versions.
|
39 |
*/
|
40 |
+
define( 'PLUGIN_TVC_VERSION', '4.5.4' );
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
public/class-enhanced-ecommerce-google-analytics-public-pro.php
CHANGED
@@ -342,7 +342,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
342 |
't_OptOut' => esc_js($this->ga_OPTOUT),
|
343 |
't_PrivacyPolicy' => esc_js($this->ga_PrivacyPolicy)
|
344 |
),
|
345 |
-
'tvc_sub_data'=>
|
346 |
);
|
347 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
348 |
}
|
@@ -363,7 +363,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
363 |
* @return void
|
364 |
*/
|
365 |
function add_dev_id() {
|
366 |
-
|
|
|
|
|
367 |
}
|
368 |
|
369 |
/**
|
@@ -373,7 +375,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
373 |
* @return void
|
374 |
*/
|
375 |
function add_plugin_details() {
|
376 |
-
|
377 |
}
|
378 |
|
379 |
/**
|
@@ -590,6 +592,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
590 |
if ($order->get_items()) {
|
591 |
foreach ($order->get_items() as $item) {
|
592 |
$_product = $item->get_product();
|
|
|
|
|
|
|
593 |
$categories = ""; $attributes = ""; $p_weight = '';
|
594 |
|
595 |
$categories=get_the_terms($item['product_id'] , "product_cat");
|
342 |
't_OptOut' => esc_js($this->ga_OPTOUT),
|
343 |
't_PrivacyPolicy' => esc_js($this->ga_PrivacyPolicy)
|
344 |
),
|
345 |
+
'tvc_sub_data'=> $sub_data
|
346 |
);
|
347 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
348 |
}
|
363 |
* @return void
|
364 |
*/
|
365 |
function add_dev_id() {
|
366 |
+
?>
|
367 |
+
<script>(window.gaDevIds=window.gaDevIds||[]).push('5CDcaG');</script>
|
368 |
+
<?php
|
369 |
}
|
370 |
|
371 |
/**
|
375 |
* @return void
|
376 |
*/
|
377 |
function add_plugin_details() {
|
378 |
+
printf("<!--%s %s-->",esc_html__("Enhanced Ecommerce Google Analytics Plugin for Woocommerce by Tatvic Plugin Version:","conversios"),esc_attr($this->tvc_eeVer));
|
379 |
}
|
380 |
|
381 |
/**
|
592 |
if ($order->get_items()) {
|
593 |
foreach ($order->get_items() as $item) {
|
594 |
$_product = $item->get_product();
|
595 |
+
if(empty($_product)){
|
596 |
+
continue;
|
597 |
+
}
|
598 |
$categories = ""; $attributes = ""; $p_weight = '';
|
599 |
|
600 |
$categories=get_the_terms($item['product_id'] , "product_cat");
|
public/class-enhanced-ecommerce-google-analytics-public.php
CHANGED
@@ -227,7 +227,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
227 |
't_OptOut' => esc_js($this->ga_OPTOUT),
|
228 |
't_PrivacyPolicy' => esc_js($this->ga_PrivacyPolicy)
|
229 |
),
|
230 |
-
'tvc_sub_data'=>
|
231 |
);
|
232 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
233 |
}
|
@@ -247,7 +247,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
247 |
* @return void
|
248 |
*/
|
249 |
function add_dev_id() {
|
250 |
-
|
|
|
|
|
251 |
}
|
252 |
|
253 |
/**
|
@@ -257,7 +259,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
257 |
* @return void
|
258 |
*/
|
259 |
function add_plugin_details() {
|
260 |
-
|
261 |
}
|
262 |
|
263 |
/**
|
@@ -419,6 +421,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
419 |
|
420 |
// Get the order and output tracking code
|
421 |
$order = new WC_Order($order_id);
|
|
|
422 |
//Get Applied Coupon Codes
|
423 |
$coupons_list = '';
|
424 |
if(version_compare($woocommerce->version, "3.7", ">")){
|
@@ -454,8 +457,12 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
454 |
|
455 |
// Order items
|
456 |
if ($order->get_items()) {
|
|
|
457 |
foreach ($order->get_items() as $item) {
|
458 |
$_product = $item->get_product();
|
|
|
|
|
|
|
459 |
if (isset($_product->variation_data)) {
|
460 |
$categories=get_the_terms($_product->get_parent_id(), "product_cat");
|
461 |
$attributes=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
|
227 |
't_OptOut' => esc_js($this->ga_OPTOUT),
|
228 |
't_PrivacyPolicy' => esc_js($this->ga_PrivacyPolicy)
|
229 |
),
|
230 |
+
'tvc_sub_data'=> $sub_data
|
231 |
);
|
232 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
233 |
}
|
247 |
* @return void
|
248 |
*/
|
249 |
function add_dev_id() {
|
250 |
+
?>
|
251 |
+
<script>(window.gaDevIds=window.gaDevIds||[]).push('5CDcaG');</script>
|
252 |
+
<?php
|
253 |
}
|
254 |
|
255 |
/**
|
259 |
* @return void
|
260 |
*/
|
261 |
function add_plugin_details() {
|
262 |
+
printf("<!--%s %s-->",esc_html__("Enhanced Ecommerce Google Analytics Plugin for Woocommerce by Tatvic Plugin Version:","conversios"),esc_attr($this->tvc_eeVer));
|
263 |
}
|
264 |
|
265 |
/**
|
421 |
|
422 |
// Get the order and output tracking code
|
423 |
$order = new WC_Order($order_id);
|
424 |
+
$orderpage_prod_Array = array();
|
425 |
//Get Applied Coupon Codes
|
426 |
$coupons_list = '';
|
427 |
if(version_compare($woocommerce->version, "3.7", ">")){
|
457 |
|
458 |
// Order items
|
459 |
if ($order->get_items()) {
|
460 |
+
|
461 |
foreach ($order->get_items() as $item) {
|
462 |
$_product = $item->get_product();
|
463 |
+
if(empty($_product)){
|
464 |
+
continue;
|
465 |
+
}
|
466 |
if (isset($_product->variation_data)) {
|
467 |
$categories=get_the_terms($_product->get_parent_id(), "product_cat");
|
468 |
$attributes=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
|
readme.txt
CHANGED
@@ -5,11 +5,11 @@ Plugin URI: https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-st
|
|
5 |
Tags: Google Analytics tracking, Dynamic Remarketing, Google Shopping automation,Google Shopping, Universal Analytics tracking,Google Analytics integration,Google Analytics integration for WooCommerce,Ecommerce tracking, google analytics 4 tracking, google shopping feed, Web Analytics, Web Analytics For WooCommerce, WooCommerce Enhanced Ecommerce, WooCommerce Google Analytics, Google Analytics Plugin, Enhanced Ecommerce Plugin
|
6 |
Author URI: https://conversios.io/
|
7 |
Author: Tatvic
|
8 |
-
Requires at least:
|
9 |
Tested up to: 5.8.2
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 4.5.
|
12 |
-
Version: 4.5.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -380,6 +380,10 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
380 |
|
381 |
== Changelog ==
|
382 |
|
|
|
|
|
|
|
|
|
383 |
= 4.5.3 - 23/12/2021 =
|
384 |
|
385 |
* Resolved some bugs
|
5 |
Tags: Google Analytics tracking, Dynamic Remarketing, Google Shopping automation,Google Shopping, Universal Analytics tracking,Google Analytics integration,Google Analytics integration for WooCommerce,Ecommerce tracking, google analytics 4 tracking, google shopping feed, Web Analytics, Web Analytics For WooCommerce, WooCommerce Enhanced Ecommerce, WooCommerce Google Analytics, Google Analytics Plugin, Enhanced Ecommerce Plugin
|
6 |
Author URI: https://conversios.io/
|
7 |
Author: Tatvic
|
8 |
+
Requires at least: 3.0.0
|
9 |
Tested up to: 5.8.2
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 4.5.4
|
12 |
+
Version: 4.5.4
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
380 |
|
381 |
== Changelog ==
|
382 |
|
383 |
+
= 4.5.4 - 24/12/2021 =
|
384 |
+
|
385 |
+
* Resolved JS issue which was reported in earlier version 4.5.3
|
386 |
+
|
387 |
= 4.5.3 - 23/12/2021 =
|
388 |
|
389 |
* Resolved some bugs
|