Version Description
08/10/2021 =
Pricing plans are updated in the UI
Performance enhancement for dashboard API
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.3.1 |
Comparing to | |
See all releases |
Code changes from version 4.3.0 to 4.3.1
- admin/helper/class-dashboard-helper.php +2 -1
- admin/js/tvc-ee-custom.js +4 -2
- admin/partials/pricings.php +9 -9
- enhanced-ecommerce-google-analytics.php +2 -2
- includes/data/class-tvc-ajax-file.php +3 -0
- includes/setup/CustomApi.php +2 -2
- includes/setup/class-tvc-product-sync-helper.php +65 -57
- readme.txt +8 -2
admin/helper/class-dashboard-helper.php
CHANGED
@@ -67,7 +67,8 @@ if(!class_exists('Conversios_Dashboard_Helper')){
|
|
67 |
$return = array('error'=>false, 'data'=>$api_rs->data);
|
68 |
}
|
69 |
}else{
|
70 |
-
$
|
|
|
71 |
}
|
72 |
//print_r($account_performance_res);
|
73 |
|
67 |
$return = array('error'=>false, 'data'=>$api_rs->data);
|
68 |
}
|
69 |
}else{
|
70 |
+
$errormsg= isset($api_rs->errors[0])?$api_rs->errors[0]:"";
|
71 |
+
$return = array('error'=>true,'errors'=>$errormsg);
|
72 |
}
|
73 |
//print_r($account_performance_res);
|
74 |
|
admin/js/tvc-ee-custom.js
CHANGED
@@ -106,9 +106,11 @@ var tvc_helper = {
|
|
106 |
v_this.set_google_ads_reports_campaign_performance_value(response.data, post_data);
|
107 |
}
|
108 |
}else{
|
109 |
-
|
|
|
|
|
110 |
}
|
111 |
-
v_this.remove_loader_for_analytics_reports();
|
112 |
}
|
113 |
});
|
114 |
},
|
106 |
v_this.set_google_ads_reports_campaign_performance_value(response.data, post_data);
|
107 |
}
|
108 |
}else{
|
109 |
+
if(response.errors != ""){
|
110 |
+
//v_this.tvc_alert("error","",response.errors);
|
111 |
+
}
|
112 |
}
|
113 |
+
//v_this.remove_loader_for_analytics_reports();
|
114 |
}
|
115 |
});
|
116 |
},
|
admin/partials/pricings.php
CHANGED
@@ -59,13 +59,13 @@ class TVC_Pricings {
|
|
59 |
<div class="tvc-list-price-month">
|
60 |
<div class="tvc-list-price">
|
61 |
<div class="price-normal">
|
62 |
-
<span>$
|
63 |
<div class="tvc-plan-off">50% OFF</div>
|
64 |
</div>
|
65 |
-
<div class="price-current"><span class="inner">$
|
66 |
<div class="tvc_month_free">Limited Offer</div>
|
67 |
</div>
|
68 |
-
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_1_m&utm_source=EE+Plugin+User+Interface&utm_medium=HUSTLE&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">
|
69 |
</div>
|
70 |
</div>
|
71 |
<div class="column discounted popular">
|
@@ -77,13 +77,13 @@ class TVC_Pricings {
|
|
77 |
</div>
|
78 |
<div class="tvc-list-price-month">
|
79 |
<div class="tvc-list-price">
|
80 |
-
<div class="price-normal"><span>$
|
81 |
<div class="tvc-plan-off">50% OFF</div>
|
82 |
</div>
|
83 |
-
<div class="price-current"><span class="inner">$
|
84 |
<div class="tvc_month_free">Limited Offer</div>
|
85 |
</div>
|
86 |
-
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_2_m&utm_source=EE+Plugin+User+Interface&utm_medium=GROWTH&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">
|
87 |
</div>
|
88 |
</div>
|
89 |
<div class="column discounted ">
|
@@ -92,13 +92,13 @@ class TVC_Pricings {
|
|
92 |
</div>
|
93 |
<div class="tvc-list-price-month">
|
94 |
<div class="tvc-list-price">
|
95 |
-
<div class="price-normal"><span>$
|
96 |
<div class="tvc-plan-off">50% OFF</div>
|
97 |
</div>
|
98 |
-
<div class="price-current"><span class="inner">$
|
99 |
<div class="tvc_month_free">Limited Offer</div>
|
100 |
</div>
|
101 |
-
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_3_m&utm_source=EE+Plugin+User+Interface&utm_medium=LEAP&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">
|
102 |
</div>
|
103 |
</div>
|
104 |
</div>
|
59 |
<div class="tvc-list-price-month">
|
60 |
<div class="tvc-list-price">
|
61 |
<div class="price-normal">
|
62 |
+
<span>$39.00</span>
|
63 |
<div class="tvc-plan-off">50% OFF</div>
|
64 |
</div>
|
65 |
+
<div class="price-current"><span class="inner">$19<span>/month</span></span></div>
|
66 |
<div class="tvc_month_free">Limited Offer</div>
|
67 |
</div>
|
68 |
+
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_1_m&utm_source=EE+Plugin+User+Interface&utm_medium=HUSTLE&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">Get Started</a>
|
69 |
</div>
|
70 |
</div>
|
71 |
<div class="column discounted popular">
|
77 |
</div>
|
78 |
<div class="tvc-list-price-month">
|
79 |
<div class="tvc-list-price">
|
80 |
+
<div class="price-normal"><span>$59.00</span>
|
81 |
<div class="tvc-plan-off">50% OFF</div>
|
82 |
</div>
|
83 |
+
<div class="price-current"><span class="inner">$29<span>/month</span></span></div>
|
84 |
<div class="tvc_month_free">Limited Offer</div>
|
85 |
</div>
|
86 |
+
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_2_m&utm_source=EE+Plugin+User+Interface&utm_medium=GROWTH&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">Get Started</a>
|
87 |
</div>
|
88 |
</div>
|
89 |
<div class="column discounted ">
|
92 |
</div>
|
93 |
<div class="tvc-list-price-month">
|
94 |
<div class="tvc-list-price">
|
95 |
+
<div class="price-normal"><span>$99.00</span>
|
96 |
<div class="tvc-plan-off">50% OFF</div>
|
97 |
</div>
|
98 |
+
<div class="price-current"><span class="inner">$49<span>/month</span></span></div>
|
99 |
<div class="tvc_month_free">Limited Offer</div>
|
100 |
</div>
|
101 |
+
<a target="_blank" href="https://conversios.io/checkout/?pid=plan_3_m&utm_source=EE+Plugin+User+Interface&utm_medium=LEAP&utm_campaign=Upsell+at+Conversios" class="btn tvc-btn">Get Started</a>
|
102 |
</div>
|
103 |
</div>
|
104 |
</div>
|
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: 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.3.
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
@@ -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.3.
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
15 |
* Plugin Name: 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.3.1
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
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.3.1' );
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
includes/data/class-tvc-ajax-file.php
CHANGED
@@ -190,6 +190,9 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
|
|
190 |
$rs = $TVCProductSyncHelper->call_batch_wise_sync_product($last_sync_product_id, $product_batch_size);
|
191 |
if(isset($rs['products_sync'])){
|
192 |
$sync_produt = (int)$sync_produt + $rs['products_sync'];
|
|
|
|
|
|
|
193 |
}
|
194 |
$skip_products=(isset($rs['skip_products']))?$rs['skip_products']:0;
|
195 |
$last_sync_product_id = (isset($rs['last_sync_product_id']))?$rs['last_sync_product_id']:0;
|
190 |
$rs = $TVCProductSyncHelper->call_batch_wise_sync_product($last_sync_product_id, $product_batch_size);
|
191 |
if(isset($rs['products_sync'])){
|
192 |
$sync_produt = (int)$sync_produt + $rs['products_sync'];
|
193 |
+
}else{
|
194 |
+
echo json_encode(array('status'=>'false', 'message'=> $rs['message']));
|
195 |
+
exit;
|
196 |
}
|
197 |
$skip_products=(isset($rs['skip_products']))?$rs['skip_products']:0;
|
198 |
$last_sync_product_id = (isset($rs['last_sync_product_id']))?$rs['last_sync_product_id']:0;
|
includes/setup/CustomApi.php
CHANGED
@@ -562,9 +562,9 @@ class CustomApi{
|
|
562 |
$return->error = false;
|
563 |
$return->products_sync = count($response->data->entries);
|
564 |
return $return;
|
565 |
-
}
|
566 |
$return->error = true;
|
567 |
-
foreach($
|
568 |
$return->message = $err;
|
569 |
break;
|
570 |
}
|
562 |
$return->error = false;
|
563 |
$return->products_sync = count($response->data->entries);
|
564 |
return $return;
|
565 |
+
}else{
|
566 |
$return->error = true;
|
567 |
+
foreach($response->errors as $err){
|
568 |
$return->message = $err;
|
569 |
break;
|
570 |
}
|
includes/setup/class-tvc-product-sync-helper.php
CHANGED
@@ -540,65 +540,73 @@ if ( ! class_exists( 'TVCProductSyncHelper' ) ) {
|
|
540 |
},
|
541 |
success: function(response){
|
542 |
console.log(response);
|
|
|
543 |
jQuery("#feed-spinner").css("display", "none");
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
|
|
572 |
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
//console.log(response);
|
603 |
}
|
604 |
});
|
540 |
},
|
541 |
success: function(response){
|
542 |
console.log(response);
|
543 |
+
|
544 |
jQuery("#feed-spinner").css("display", "none");
|
545 |
+
if(response.status == "success"){
|
546 |
+
//var rs = JSON.parse(response);
|
547 |
+
let sync_produt_p = Math.round(response.sync_progressive_data.sync_produt_p);
|
548 |
+
let total_product = response.sync_progressive_data.total_product;
|
549 |
+
let sync_produt = response.sync_progressive_data.sync_produt;
|
550 |
+
let sync_message = response.sync_progressive_data.sync_message;
|
551 |
+
let sync_step = response.sync_progressive_data.sync_step;
|
552 |
+
let is_synced_up = response.sync_progressive_data.is_synced_up;
|
553 |
+
let last_sync_product_id = response.sync_progressive_data.last_sync_product_id;
|
554 |
+
let skip_products = response.sync_progressive_data.last_sync_product_id;
|
555 |
+
let tvc_sync_progress_bar_class = "tvc-sync-progress-bar";
|
556 |
+
if(sync_step == 1){
|
557 |
+
jQuery(".tvc-sync-progress-db").css("display","flex");
|
558 |
+
}else if(sync_step == 2){
|
559 |
+
jQuery(".tvc-sync-progress-db").hide();
|
560 |
+
jQuery(".tvc-sync-progress-gmc").css("display","flex");
|
561 |
+
tvc_sync_progress_bar_class = "tvc-sync-success-progress-bar";
|
562 |
+
}
|
563 |
+
|
564 |
+
jQuery("."+tvc_sync_progress_bar_class).css("width",sync_produt_p+"%");
|
565 |
+
jQuery("."+tvc_sync_progress_bar_class).html(sync_produt_p+"%");
|
566 |
+
jQuery("."+tvc_sync_progress_bar_class).attr("aria-valuenow",sync_produt_p);
|
567 |
+
jQuery(".tvc-progress-info").show();
|
568 |
+
jQuery(".tvc-sync-count").html(sync_produt);
|
569 |
+
jQuery(".tvc-total-count").html(total_product);
|
570 |
+
jQuery(".tvc-sync-message").html(sync_message);
|
571 |
+
if(sync_step == 1 && is_synced_up == true){
|
572 |
+
is_synced_up = false;
|
573 |
+
}
|
574 |
|
575 |
+
if(is_synced_up == false && sync_step <= 2){
|
576 |
+
submitProductSyncUp(response.sync_progressive_data);
|
577 |
+
}else if(sync_step == 2 ){
|
578 |
+
setTimeout(function(){
|
579 |
+
$('.progress-bar-wapper').removeClass('open');
|
580 |
+
jQuery(".tvc-sync-progress-bar").css("width","0%");
|
581 |
+
jQuery(".tvc-sync-success-progress-bar").css("width","0%");
|
582 |
+
jQuery(".tvc-sync-progress-bar").html("0%");
|
583 |
+
jQuery(".tvc-sync-success-progress-bar").html("0%");
|
584 |
+
jQuery(".tvc-sync-progress-bar").attr("aria-valuenow","0");
|
585 |
+
jQuery(".tvc-sync-success-progress-bar").attr("aria-valuenow","0");
|
586 |
+
jQuery(".tvc-sync-count").html("0");
|
587 |
+
jQuery(".tvc-total-count").html("--");
|
588 |
+
jQuery(".tvc-sync-message").html("Initialization of products data for push data in Google shopping");
|
589 |
+
if (response.api_rs.error == false) {
|
590 |
+
var message = "Your products have been synced in your merchant center account. It takes up to 30 minutes to reflect the product data in merchant center. As soon as they are updated, they will be shown in the \"Product Sync\" dashboard.";
|
591 |
+
if (response.sync_progressive_data.skip_products.length > 0) {
|
592 |
+
message = message + "\n Because of pricing issues, " + response.sync_progressive_data.skip_products.length + " products did not sync.";
|
593 |
+
}
|
594 |
+
tvc_helper.tvc_alert("success","",message);
|
595 |
+
window.location.replace("<?php echo $this->site_url.'sync_product_page'; ?>");
|
596 |
+
}else {
|
597 |
+
tvc_helper.tvc_alert("error","",response.api_rs.message);
|
598 |
+
}
|
599 |
+
}, 2000);
|
600 |
+
setTimeout(function(){
|
601 |
+
//window.location.replace("<?php echo $this->site_url.'sync_product_page'; ?>");
|
602 |
+
}, 7000);
|
603 |
+
}
|
604 |
+
}else{
|
605 |
+
tvc_helper.tvc_alert("error","",response.message);
|
606 |
+
setTimeout(function(){
|
607 |
+
window.location.replace("<?php echo $this->site_url.'sync_product_page'; ?>");
|
608 |
+
}, 2000);
|
609 |
+
}
|
610 |
//console.log(response);
|
611 |
}
|
612 |
});
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
|
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.8.1
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 4.3.
|
12 |
-
Version: 4.3.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -379,6 +379,12 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
379 |
|
380 |
|
381 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
382 |
= 4.3.0 - 29/09/2021 =
|
383 |
|
384 |
* We have added Campaign performance data in the dashboard. This will allow you to have visibility on your Google ads campaigns. It will show you clicks, cost, conversions, and sales like important metric for each campaign so that you can take informed decisions to increase your marketing ROI.
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.8.1
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 4.3.1
|
12 |
+
Version: 4.3.1
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
379 |
|
380 |
|
381 |
== Changelog ==
|
382 |
+
= 4.3.1 - 08/10/2021 =
|
383 |
+
|
384 |
+
* Pricing plans are updated in the UI
|
385 |
+
|
386 |
+
* Performance enhancement for dashboard API
|
387 |
+
|
388 |
= 4.3.0 - 29/09/2021 =
|
389 |
|
390 |
* We have added Campaign performance data in the dashboard. This will allow you to have visibility on your Google ads campaigns. It will show you clicks, cost, conversions, and sales like important metric for each campaign so that you can take informed decisions to increase your marketing ROI.
|