Version Description
- 31/03/2021 =
- UI bug issue solved
- Fix to dismiss the admin notices permanentaly
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 3.0.4 |
Comparing to | |
See all releases |
Code changes from version 3.0.3 to 3.0.4
admin/class-enhanced-ecommerce-google-analytics-admin.php
CHANGED
@@ -60,24 +60,47 @@ class Enhanced_Ecommerce_Google_Analytics_Admin extends TVC_Admin_Helper {
|
|
60 |
}
|
61 |
public function tvc_admin_notice(){
|
62 |
//global $pagenow;
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
$googleDetail = $google_detail['setting'];
|
71 |
-
if(isset($googleDetail->google_merchant_center_id) && $googleDetail->google_merchant_center_id =="" && $this->subscriptionId != "" ){
|
72 |
-
echo '<div class="notice notice-info is-dismissible">
|
73 |
-
<p>Leverage the power of Google Shopping to reach out millions of shoppers across Google. Automate entire Google Shopping and get eligible for free listing when user searches on Google for products similar to your eCommerce business. <a href="admin.php?page=enhanced-ecommerce-google-analytics-admin-display"><b><u>Automate now</u></b></a></p>
|
74 |
-
</div>';
|
75 |
-
?>
|
76 |
-
<style>
|
77 |
-
<?php
|
78 |
-
|
79 |
}
|
80 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
|
83 |
|
60 |
}
|
61 |
public function tvc_admin_notice(){
|
62 |
//global $pagenow;
|
63 |
+
$ee_additional_data = $this->get_ee_additional_data();
|
64 |
+
if(isset($ee_additional_data['dismissed_ee_adimin_notic_a']) && $ee_additional_data['dismissed_ee_adimin_notic_a'] == 1){
|
65 |
+
}else{
|
66 |
+
if(!$this->get_subscriptionId()){
|
67 |
+
echo '<div class="notice notice-info is-dismissible" data-id="ee_adimin_notic_a">
|
68 |
+
<p>Tatvic EE plugin is now fully compatible with Google Analytics 4. Also, explore the new features of Google Shopping and Dynamic remarketing to reach million of shoppers across Google and scale your eCommerce business faster. <a href="admin.php?page=enhanced-ecommerce-google-analytics-admin-display"><b><u>CONFIGURE NOW</u></b></a></p>
|
69 |
+
</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
+
}
|
72 |
+
if(isset($ee_additional_data['dismissed_ee_adimin_notic_b']) && $ee_additional_data['dismissed_ee_adimin_notic_b'] == 1){
|
73 |
+
}else{
|
74 |
+
$google_detail = $this->get_ee_options_data();
|
75 |
+
if(isset($google_detail['setting']) && $google_detail['setting']){
|
76 |
+
$googleDetail = $google_detail['setting'];
|
77 |
+
if(isset($googleDetail->google_merchant_center_id) && $googleDetail->google_merchant_center_id =="" && $this->subscriptionId != "" ){
|
78 |
+
echo '<div class="notice notice-info is-dismissible" data-id="ee_adimin_notic_b">
|
79 |
+
<p>Leverage the power of Google Shopping to reach out millions of shoppers across Google. Automate entire Google Shopping and get eligible for free listing when user searches on Google for products similar to your eCommerce business. <a href="admin.php?page=enhanced-ecommerce-google-analytics-admin-display"><b><u>Automate now</u></b></a></p>
|
80 |
+
</div>';
|
81 |
+
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
85 |
+
?>
|
86 |
+
<script>
|
87 |
+
(function( $ ) {
|
88 |
+
$( function() {
|
89 |
+
$( '.notice' ).on( 'click', '.notice-dismiss', function( event, el ) {
|
90 |
+
var ee_notice_dismiss_id = $(this).parent('.is-dismissible').attr("data-id");
|
91 |
+
jQuery.post(myAjaxNonces.ajaxurl,{
|
92 |
+
action: "tvc_call_notice_dismiss",
|
93 |
+
data:{ee_notice_dismiss_id:ee_notice_dismiss_id},
|
94 |
+
dataType: "json",
|
95 |
+
apiDomainClaimNonce: myAjaxNonces.apiNoticDismissNonce
|
96 |
+
},function( response ){
|
97 |
+
|
98 |
+
});
|
99 |
+
});
|
100 |
+
} );
|
101 |
+
})( jQuery );
|
102 |
+
</script>
|
103 |
+
<?php
|
104 |
|
105 |
|
106 |
|
admin/class-tvc-admin-helper.php
CHANGED
@@ -690,7 +690,11 @@ Class TVC_Admin_Helper{
|
|
690 |
$postData['method']="meta";
|
691 |
$siteVerificationToken_tag = $this->customApiObj->siteVerificationToken($postData);
|
692 |
if(isset($siteVerificationToken_tag->data->token) && $siteVerificationToken_tag->data->token){
|
693 |
-
$this->
|
|
|
|
|
|
|
|
|
694 |
sleep(1);
|
695 |
$siteVerification_tag = $this->customApiObj->siteVerification($postData);
|
696 |
if(isset($siteVerification_tag->error) && !empty($siteVerification_tag->errors)){
|
690 |
$postData['method']="meta";
|
691 |
$siteVerificationToken_tag = $this->customApiObj->siteVerificationToken($postData);
|
692 |
if(isset($siteVerificationToken_tag->data->token) && $siteVerificationToken_tag->data->token){
|
693 |
+
$ee_additional_data = $this->get_ee_additional_data();
|
694 |
+
$ee_additional_data['add_site_varification_tag']=1;
|
695 |
+
$ee_additional_data['site_varification_tag_val']=base64_encode($siteVerificationToken_tag->data->token);
|
696 |
+
|
697 |
+
$this->set_ee_additional_data($ee_additional_data);
|
698 |
sleep(1);
|
699 |
$siteVerification_tag = $this->customApiObj->siteVerification($postData);
|
700 |
if(isset($siteVerification_tag->error) && !empty($siteVerification_tag->errors)){
|
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: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
19 |
-
* Version: 3.0.
|
20 |
* Author: Tatvic
|
21 |
* Author URI: www.tatvic.com
|
22 |
* License: GPL-2.0+
|
@@ -38,7 +38,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
38 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
39 |
* Rename this for your plugin and update it as you release new versions.
|
40 |
*/
|
41 |
-
define( 'PLUGIN_NAME_VERSION', '3.0.
|
42 |
$fullName = plugin_basename( __FILE__ );
|
43 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
44 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
16 |
* Plugin Name: Enhanced E-commerce for Woocommerce store
|
17 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
18 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
19 |
+
* Version: 3.0.4
|
20 |
* Author: Tatvic
|
21 |
* Author URI: www.tatvic.com
|
22 |
* License: GPL-2.0+
|
38 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
39 |
* Rename this for your plugin and update it as you release new versions.
|
40 |
*/
|
41 |
+
define( 'PLUGIN_NAME_VERSION', '3.0.4' );
|
42 |
$fullName = plugin_basename( __FILE__ );
|
43 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
44 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
includes/data/class-tvc-ajax-file.php
CHANGED
@@ -45,6 +45,21 @@ class TVC_Ajax_File extends TVC_Ajax_Calls {
|
|
45 |
add_action('wp_ajax_tvc_call_api_sync', array($this, 'tvc_call_api_sync'));
|
46 |
add_action('wp_ajax_tvc_call_domain_claim', array($this, 'tvc_call_domain_claim'));
|
47 |
add_action('wp_ajax_tvc_call_site_verified', array($this, 'tvc_call_site_verified'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
}
|
49 |
public function tvc_call_api_sync(){
|
50 |
if($this->safe_ajax_call(filter_input(INPUT_POST, 'apiSyncupNonce'), 'tvc_call_api_sync-nonce')){
|
45 |
add_action('wp_ajax_tvc_call_api_sync', array($this, 'tvc_call_api_sync'));
|
46 |
add_action('wp_ajax_tvc_call_domain_claim', array($this, 'tvc_call_domain_claim'));
|
47 |
add_action('wp_ajax_tvc_call_site_verified', array($this, 'tvc_call_site_verified'));
|
48 |
+
add_action('wp_ajax_tvc_call_notice_dismiss', array($this, 'tvc_call_notice_dismiss'));
|
49 |
+
}
|
50 |
+
public function tvc_call_notice_dismiss(){
|
51 |
+
if($this->safe_ajax_call(filter_input(INPUT_POST, 'apiNoticDismissNonce'), 'tvc_call_notice_dismiss-nonce')){
|
52 |
+
|
53 |
+
$ee_notice_dismiss_id = $_POST['data']['ee_notice_dismiss_id'];
|
54 |
+
if($ee_notice_dismiss_id != ""){
|
55 |
+
$TVC_Admin_Helper = new TVC_Admin_Helper();
|
56 |
+
$ee_additional_data = $TVC_Admin_Helper->get_ee_additional_data();
|
57 |
+
$ee_additional_data['dismissed_'.$ee_notice_dismiss_id] = 1;
|
58 |
+
$TVC_Admin_Helper->set_ee_additional_data($ee_additional_data);
|
59 |
+
echo json_encode(array('status' => 'success', 'message' => $ee_additional_data));
|
60 |
+
}
|
61 |
+
}
|
62 |
+
exit;
|
63 |
}
|
64 |
public function tvc_call_api_sync(){
|
65 |
if($this->safe_ajax_call(filter_input(INPUT_POST, 'apiSyncupNonce'), 'tvc_call_api_sync-nonce')){
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
|
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.7
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 3.0.
|
12 |
-
Version: 3.0.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -356,6 +356,10 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
356 |
|
357 |
== Changelog ==
|
358 |
|
|
|
|
|
|
|
|
|
359 |
= 3.0.3 - 30/03/2021 =
|
360 |
* Added double check for auto site verification for merchant center accounts
|
361 |
* Added double check for auto domain claim for merchant center accounts
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.7
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 3.0.4
|
12 |
+
Version: 3.0.4
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
356 |
|
357 |
== Changelog ==
|
358 |
|
359 |
+
= 3.0.4 - 31/03/2021 =
|
360 |
+
* UI bug issue solved
|
361 |
+
* Fix to dismiss the admin notices permanentaly
|
362 |
+
|
363 |
= 3.0.3 - 30/03/2021 =
|
364 |
* Added double check for auto site verification for merchant center accounts
|
365 |
* Added double check for auto domain claim for merchant center accounts
|