Version Description
23/10/2021 =
We have fixed the onboarding signup issue which was raised by some users.
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.3.5 |
Comparing to | |
See all releases |
Code changes from version 4.3.4 to 4.3.5
admin/class-conversios-onboarding.php
CHANGED
@@ -20,6 +20,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
|
|
20 |
return;
|
21 |
}
|
22 |
$this->includes();
|
|
|
23 |
/**
|
24 |
* Set Var
|
25 |
*/
|
@@ -113,6 +114,8 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
|
|
113 |
$ee_additional_data = $this->TVC_Admin_Helper->get_ee_additional_data();
|
114 |
$ee_additional_data['ee_last_login'] = current_time( 'timestamp' );
|
115 |
$this->TVC_Admin_Helper->set_ee_additional_data($ee_additional_data);
|
|
|
|
|
116 |
}
|
117 |
//$this->tvc_data = json_encode($this->tvc_data);
|
118 |
}
|
20 |
return;
|
21 |
}
|
22 |
$this->includes();
|
23 |
+
|
24 |
/**
|
25 |
* Set Var
|
26 |
*/
|
114 |
$ee_additional_data = $this->TVC_Admin_Helper->get_ee_additional_data();
|
115 |
$ee_additional_data['ee_last_login'] = current_time( 'timestamp' );
|
116 |
$this->TVC_Admin_Helper->set_ee_additional_data($ee_additional_data);
|
117 |
+
|
118 |
+
$this->is_refresh_token_expire = false;
|
119 |
}
|
120 |
//$this->tvc_data = json_encode($this->tvc_data);
|
121 |
}
|
admin/class-tvc-admin-helper.php
CHANGED
@@ -1148,7 +1148,9 @@ Class TVC_Admin_Helper{
|
|
1148 |
public function is_refresh_token_expire(){
|
1149 |
$access_token = $this->customApiObj->get_tvc_access_token();
|
1150 |
$refresh_token = $this->customApiObj->get_tvc_refresh_token();
|
1151 |
-
$access_token
|
|
|
|
|
1152 |
if($access_token != ""){
|
1153 |
return false;
|
1154 |
}else{
|
1148 |
public function is_refresh_token_expire(){
|
1149 |
$access_token = $this->customApiObj->get_tvc_access_token();
|
1150 |
$refresh_token = $this->customApiObj->get_tvc_refresh_token();
|
1151 |
+
if($access_token != "" && $refresh_token != ""){
|
1152 |
+
$access_token = $this->customApiObj->generateAccessToken($access_token, $refresh_token);
|
1153 |
+
}
|
1154 |
if($access_token != ""){
|
1155 |
return false;
|
1156 |
}else{
|
admin/js/onboarding-custom.js
CHANGED
@@ -112,9 +112,9 @@ $(document).ready(function () {
|
|
112 |
});
|
113 |
|
114 |
//select2
|
115 |
-
|
116 |
// desable to close advance settings
|
117 |
-
|
118 |
e.stopPropagation();
|
119 |
});
|
120 |
});
|
@@ -494,8 +494,8 @@ function list_analytics_web_properties(type, tvc_data) {
|
|
494 |
url: tvc_ajax_url,
|
495 |
data: {action: "get_analytics_web_properties", type: type, tvc_data:tvc_data, conversios_onboarding_nonce:conversios_onboarding_nonce},
|
496 |
success: function (response) {
|
497 |
-
|
498 |
-
if (response.error == false) {
|
499 |
if (type == "UA" || type == "BOTH") {
|
500 |
//web_properties_dropdown
|
501 |
var subscriptionPropertyId = $("#subscriptionPropertyId").val();
|
@@ -515,7 +515,7 @@ function list_analytics_web_properties(type, tvc_data) {
|
|
515 |
}else{
|
516 |
selected = "";
|
517 |
}
|
518 |
-
PropOptions = PropOptions + '<option value="' + propValue.webPropertyId + '" ' + selected + ' data-accountid="' + propValue.accountId + '" data-profileid="' + propValue.id + '"> ' + propValue.accountName + ' - ' + propValue.propertyName + ' - ' + propValue.name + '</option>';
|
519 |
});
|
520 |
}
|
521 |
$('#ua_web_property_id').html(PropOptions);
|
@@ -540,10 +540,12 @@ function list_analytics_web_properties(type, tvc_data) {
|
|
540 |
$('#both_web_measurement_id').html(MeasOptions);
|
541 |
}
|
542 |
$(".slect2bx").select2();
|
|
|
|
|
|
|
543 |
}else{
|
544 |
-
|
545 |
-
|
546 |
-
}
|
547 |
is_validate_step("step_1");
|
548 |
loaderSection(false);
|
549 |
}
|
112 |
});
|
113 |
|
114 |
//select2
|
115 |
+
//$(".select2").select2();
|
116 |
// desable to close advance settings
|
117 |
+
$(".advance-settings .dropdown-menu").click(function(e){
|
118 |
e.stopPropagation();
|
119 |
});
|
120 |
});
|
494 |
url: tvc_ajax_url,
|
495 |
data: {action: "get_analytics_web_properties", type: type, tvc_data:tvc_data, conversios_onboarding_nonce:conversios_onboarding_nonce},
|
496 |
success: function (response) {
|
497 |
+
console.log(response);
|
498 |
+
if (response != null && response.error == false) {
|
499 |
if (type == "UA" || type == "BOTH") {
|
500 |
//web_properties_dropdown
|
501 |
var subscriptionPropertyId = $("#subscriptionPropertyId").val();
|
515 |
}else{
|
516 |
selected = "";
|
517 |
}
|
518 |
+
PropOptions = PropOptions + '<option value="' + propValue.webPropertyId + '" ' + selected + ' data-accountid="' + propValue.accountId + '" data-profileid="' + propValue.id + '"> ' + propValue.accountName + ' - ' + propValue.propertyName + ' - ' + propValue.name + ' - ' + propValue.webPropertyId +'</option>';
|
519 |
});
|
520 |
}
|
521 |
$('#ua_web_property_id').html(PropOptions);
|
540 |
$('#both_web_measurement_id').html(MeasOptions);
|
541 |
}
|
542 |
$(".slect2bx").select2();
|
543 |
+
}else if( response != null && response.error == true && response.errors != undefined){
|
544 |
+
const errors = response.errors[0];
|
545 |
+
add_message("error",errors);
|
546 |
}else{
|
547 |
+
add_message("error","It seems "+type +" Google analytics account not fetched");
|
548 |
+
}
|
|
|
549 |
is_validate_step("step_1");
|
550 |
loaderSection(false);
|
551 |
}
|
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.5
|
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.5' );
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
includes/setup/CustomApi.php
CHANGED
@@ -17,7 +17,7 @@ class CustomApi{
|
|
17 |
}else{
|
18 |
$TVC_Admin_Helper = new TVC_Admin_Helper();
|
19 |
$google_detail = $TVC_Admin_Helper->get_ee_options_data();
|
20 |
-
$this->access_token = $google_detail['setting']->access_token;
|
21 |
return $this->access_token;
|
22 |
}
|
23 |
}
|
@@ -31,7 +31,7 @@ class CustomApi{
|
|
31 |
}else{
|
32 |
$TVC_Admin_Helper = new TVC_Admin_Helper();
|
33 |
$google_detail = $TVC_Admin_Helper->get_ee_options_data();
|
34 |
-
$this->refresh_token = $google_detail['setting']->refresh_token;
|
35 |
return $this->refresh_token;
|
36 |
}
|
37 |
}
|
17 |
}else{
|
18 |
$TVC_Admin_Helper = new TVC_Admin_Helper();
|
19 |
$google_detail = $TVC_Admin_Helper->get_ee_options_data();
|
20 |
+
$this->access_token = (isset($google_detail['setting']->access_token))?$google_detail['setting']->access_token:"";
|
21 |
return $this->access_token;
|
22 |
}
|
23 |
}
|
31 |
}else{
|
32 |
$TVC_Admin_Helper = new TVC_Admin_Helper();
|
33 |
$google_detail = $TVC_Admin_Helper->get_ee_options_data();
|
34 |
+
$this->refresh_token = (isset($google_detail['setting']->refresh_token))?$google_detail['setting']->refresh_token:"";
|
35 |
return $this->refresh_token;
|
36 |
}
|
37 |
}
|
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 |
|
@@ -380,6 +380,10 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
380 |
|
381 |
== Changelog ==
|
382 |
|
|
|
|
|
|
|
|
|
383 |
= 4.3.4 - 21/10/2021 =
|
384 |
|
385 |
* Site verification and domainc claim issue got fixed for the manually created merchant center accounts
|
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.5
|
12 |
+
Version: 4.3.5
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
380 |
|
381 |
== Changelog ==
|
382 |
|
383 |
+
= 4.3.5 - 23/10/2021 =
|
384 |
+
|
385 |
+
* We have fixed the onboarding signup issue which was raised by some users.
|
386 |
+
|
387 |
= 4.3.4 - 21/10/2021 =
|
388 |
|
389 |
* Site verification and domainc claim issue got fixed for the manually created merchant center accounts
|