Enhanced Ecommerce Google Analytics Plugin for WooCommerce - Version 4.8.8

Version Description

  • 22/08/2022 = For ease of onboarding and better user understanding, we have enhanced our UI and content. Also we have fixed some minor issues wrt to the enhanced conversion tracking.
Download this release

Release Info

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

Code changes from version 4.8.7 to 4.8.8

admin/class-conversios-onboarding.php CHANGED
@@ -24,11 +24,11 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
24
  /**
25
  * Set Var
26
  */
27
- $this->version = PLUGIN_TVC_VERSION;
28
  $this->customApiObj = new CustomApi();
29
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
30
  $ee_additional_data = $this->TVC_Admin_Helper->get_ee_additional_data();
31
-
32
  $this->connect_url = $this->TVC_Admin_Helper->get_connect_url();
33
  $this->tvc_data = $this->TVC_Admin_Helper->get_store_data();
34
  $this->is_refresh_token_expire = $this->TVC_Admin_Helper->is_refresh_token_expire();
@@ -195,7 +195,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
195
  <div class="smallcontainer">
196
  <div class="onbordingtop">
197
  <h2><?php esc_html_e("Let’s get you started.","conversios"); ?></h2>
198
- <p><?php esc_html_e("Automate Google Analytics, Dynamic Remarketing & Google Shopping in just 5 minutes.","conversios"); ?></p>
199
  </div>
200
  <div class="row">
201
  <!-- onborading left start -->
@@ -239,7 +239,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
239
  </div>
240
  <?php } ?>
241
  <?php } ?>
242
- <p><?php esc_html_e("Make sure you sign in with the google account that has all privileges to access google analytics, google ads and google merchant center account.","conversios"); ?></p>
243
  </div>
244
  </div>
245
  </div>
@@ -252,7 +252,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
252
  </div>
253
  <div class="stepdetwrap">
254
  <h4><?php esc_html_e("Connect Google Analytics Account","conversios"); ?></h4>
255
- <p><?php esc_html_e("Tag your website with all important e-commerce events in Google Analytics.","conversios"); ?></p>
256
  </div>
257
  </div>
258
  <div class="stepmoredtlwrp">
@@ -375,8 +375,8 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
375
  <img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/check-wbg.png'); ?>" alt="" />
376
  </div>
377
  <div class="stepdetwrap">
378
- <h4><?php esc_html_e("Select Google Ads account","conversios"); ?></h4>
379
- <p><?php esc_html_e("With dynamic reamarketing tags, you will be able to show ads to your past visitors with specific product information tailored to your customer’s previous site visit.","conversios"); ?></p>
380
  </div>
381
  </div>
382
  <div class="stepmoredtlwrp">
@@ -479,7 +479,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
479
  <div class="form-group" style="display:none;" id="new_merchant_section">
480
  <div class="text-center">
481
  <div class="alert alert-primary" style="padding: 10px;" role="alert">
482
- <label class="form-label-control font-weight-bold"><?php esc_html_e("We have created new merchant center account with ID: ","conversios"); ?><span id="new_merchant_id"></span>. <?php esc_html_e("Click on finish button to save new account.","conversios"); ?></label>
483
  </div>
484
  </div>
485
  </div>
@@ -496,7 +496,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
496
  </div>
497
  </div>
498
  <div class="stepsbmtbtn">
499
- <button type="button" id="step_3" data-enchanter="finish" class="stepnextbtn finishbtn"><?php esc_html_e("Finish","conversios"); ?></button>
500
  <!-- add dslbbtn class for disable button -->
501
  </div>
502
  <input type="hidden" id="subscriptionMerchantCenId" name="subscriptionMerchantCenId" value="<?php echo property_exists($googleDetail,"google_merchant_center_id")?esc_attr($googleDetail->google_merchant_center_id):""; ?>">
@@ -683,7 +683,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
683
  <div class="ppclsbtn clsbtntrgr"><img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/close-icon.png'); ?>" alt="" /></div>
684
  </div>
685
  <div class="onbrdpp-body congratppbody">
686
- <p><?php esc_html_e("You have been successfully onboarded. Please check the account summary below and confirm.","conversios"); ?></p>
687
  <div class="congratppdtlwrp">
688
  <div class="cngrtppdtl-item" id="google_analytics_property_id_info">
689
  <div class="cngtrpplft">
@@ -691,13 +691,19 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
691
  <?php esc_html_e("Google Analytics Property Id:","conversios"); ?>
692
  </div>
693
  <div class="cngtrpprgt" id="selected_google_analytics_property"></div>
 
 
 
694
  </div>
695
- <div class="cngrtppdtl-item" id="google_analytics_measurement_id_info">
696
  <div class="cngtrpplft">
697
  <span class="cngrtchckicon"><img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/green-check.png'); ?>" alt="" /></span>
698
- <?php esc_html_e("Google Analytics Measurement Id:","conversios"); ?>
699
  </div>
700
  <div class="cngtrpprgt" id="selected_google_analytics_measurement"></div>
 
 
 
701
  </div>
702
  <div class="cngrtppdtl-item" id="google_ads_info">
703
  <div class="cngtrpplft">
@@ -705,6 +711,9 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
705
  <?php esc_html_e("Google Ads Account:","conversios"); ?>
706
  </div>
707
  <div class="cngtrpprgt" id="selected_google_ads_account"></div>
 
 
 
708
  </div>
709
  <div class="cngrtppdtl-item" id="google_merchant_center_info">
710
  <div class="cngtrpplft">
@@ -712,11 +721,15 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
712
  <?php esc_html_e("Google Merchant Center Account","conversios"); ?>
713
  </div>
714
  <div class="cngtrpprgt" id="selected_google_merchant_center"></div>
 
 
 
715
  </div>
716
  </div>
717
  </div>
718
  <div class="ppfooterbtn">
719
- <button type="button" id="confirm_selection" class="ppblubtn"><?php esc_html_e("Confirm","conversios"); ?></button>
 
720
  </div>
721
  </div>
722
  </div>
@@ -871,7 +884,8 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
871
  },
872
  success: function (response) {
873
  //console.log(response);
874
- if (response.error === false) {
 
875
  if(response.return_url){
876
  location.replace( response.return_url);
877
  }else{
@@ -884,6 +898,40 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
884
  });
885
  });
886
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
887
  /**
888
  * Convesios defoult html script
889
  */
@@ -938,7 +986,7 @@ if ( ! class_exists( 'Conversios_Onboarding' ) ) {
938
  //
939
 
940
  function go_next(next_this){
941
- jQuery(next_this).closest('.onbordording-step').find('.stepdtltop').attr("data-is-done","1");
942
  jQuery(next_this).closest('.onbordording-step').addClass('selectedactivestep');
943
  jQuery(next_this).closest('.onbordording-step').removeClass('activestep');
944
  jQuery( next_this ).closest('.onbordording-step').next('.onbordording-step').addClass('activestep');
24
  /**
25
  * Set Var
26
  */
27
+ $this->version = PLUGIN_TVC_VERSION;
28
  $this->customApiObj = new CustomApi();
29
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
30
  $ee_additional_data = $this->TVC_Admin_Helper->get_ee_additional_data();
31
+ $this->url = $this->TVC_Admin_Helper->get_onboarding_page_url();
32
  $this->connect_url = $this->TVC_Admin_Helper->get_connect_url();
33
  $this->tvc_data = $this->TVC_Admin_Helper->get_store_data();
34
  $this->is_refresh_token_expire = $this->TVC_Admin_Helper->is_refresh_token_expire();
195
  <div class="smallcontainer">
196
  <div class="onbordingtop">
197
  <h2><?php esc_html_e("Let’s get you started.","conversios"); ?></h2>
198
+ <p><?php esc_html_e("Automate eCommerce tracking in Google Analytics, Dynamic Remarketing and enhanced conversions tags and product feed sync in google merchant center to boost your eCommerce sales.","conversios"); ?></p>
199
  </div>
200
  <div class="row">
201
  <!-- onborading left start -->
239
  </div>
240
  <?php } ?>
241
  <?php } ?>
242
+ <p><?php esc_html_e("Make sure you sign in with the google email account that has all privileges to access google analytics, google ads and google merchant center account that you want to configure for your store. We take programmatic access to your accounts to automate the Google analytics tracking and Google Shopping for you so that you do not need any developer or expert to set up the plugin.","conversios"); ?></p>
243
  </div>
244
  </div>
245
  </div>
252
  </div>
253
  <div class="stepdetwrap">
254
  <h4><?php esc_html_e("Connect Google Analytics Account","conversios"); ?></h4>
255
+ <p><?php esc_html_e("Select your Google Analytics account from the dropdown below and hit “Next”. That’s it..!! Google Analytics eCommerce tracking will be set up automatically. Isn’t it easy peasy??","conversios"); ?></p>
256
  </div>
257
  </div>
258
  <div class="stepmoredtlwrp">
375
  <img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/check-wbg.png'); ?>" alt="" />
376
  </div>
377
  <div class="stepdetwrap">
378
+ <h4><?php esc_html_e("Connect Google Ads account","conversios"); ?></h4>
379
+ <p><?php esc_html_e("Select the Google Ads account from the drop down or create a new one. Once you connect Google Ads account, dynamic remarketing, Google Ads conversion and enhanced conversion tags will be activated which will help your reach out to your store visitor based on their browsing behavior and your campaign measurements will be effective. DO NOT MISS THIS if you really want to increase your eCommerce sales.","conversios"); ?></p>
380
  </div>
381
  </div>
382
  <div class="stepmoredtlwrp">
479
  <div class="form-group" style="display:none;" id="new_merchant_section">
480
  <div class="text-center">
481
  <div class="alert alert-primary" style="padding: 10px;" role="alert">
482
+ <label class="form-label-control font-weight-bold"><?php esc_html_e("New Google Merchant Center with account id: ","conversios"); ?><span id="new_merchant_id"></span> <?php esc_html_e('is created successfully. Click on "Save" to finish the configuration.',"conversios"); ?></label>
483
  </div>
484
  </div>
485
  </div>
496
  </div>
497
  </div>
498
  <div class="stepsbmtbtn">
499
+ <button type="button" id="step_3" data-enchanter="finish" class="stepnextbtn finishbtn"><?php esc_html_e("Save","conversios"); ?></button>
500
  <!-- add dslbbtn class for disable button -->
501
  </div>
502
  <input type="hidden" id="subscriptionMerchantCenId" name="subscriptionMerchantCenId" value="<?php echo property_exists($googleDetail,"google_merchant_center_id")?esc_attr($googleDetail->google_merchant_center_id):""; ?>">
683
  <div class="ppclsbtn clsbtntrgr"><img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/close-icon.png'); ?>" alt="" /></div>
684
  </div>
685
  <div class="onbrdpp-body congratppbody">
686
+ <p><?php esc_html_e("All the Google accounts are successfully configured with your store. Below is the summary.","conversios"); ?></p>
687
  <div class="congratppdtlwrp">
688
  <div class="cngrtppdtl-item" id="google_analytics_property_id_info">
689
  <div class="cngtrpplft">
691
  <?php esc_html_e("Google Analytics Property Id:","conversios"); ?>
692
  </div>
693
  <div class="cngtrpprgt" id="selected_google_analytics_property"></div>
694
+ <div>
695
+ <?php echo '<p class="ga-text text-right"><a href="' . esc_url_raw($this->url) . '" class="text-underline"><img class="editbtn" src="'.esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/icon/edit_icon.png').'" alt="refresh"/></a></p>';?>
696
+ </div>
697
  </div>
698
+ <div class="cngrtppdtl-item" id="google_analytics_measurement_id_info">
699
  <div class="cngtrpplft">
700
  <span class="cngrtchckicon"><img src="<?php echo esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/green-check.png'); ?>" alt="" /></span>
701
+ <?php esc_html_e("Google Analytics 4 Measurement Id:","conversios"); ?>
702
  </div>
703
  <div class="cngtrpprgt" id="selected_google_analytics_measurement"></div>
704
+ <div>
705
+ <?php echo '<p class="ga-text text-right"><a href="' . esc_url_raw($this->url) . '" class="text-underline"><img class="editbtn" src="'.esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/icon/edit_icon.png').'" alt="refresh"/></a></p>';?>
706
+ </div>
707
  </div>
708
  <div class="cngrtppdtl-item" id="google_ads_info">
709
  <div class="cngtrpplft">
711
  <?php esc_html_e("Google Ads Account:","conversios"); ?>
712
  </div>
713
  <div class="cngtrpprgt" id="selected_google_ads_account"></div>
714
+ <div>
715
+ <?php echo '<p class="ga-text text-right"><a href="' . esc_url_raw($this->url) . '" class="text-underline"><img class="editbtn" src="'.esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/icon/edit_icon.png').'" alt="refresh"/></a></p>';?>
716
+ </div>
717
  </div>
718
  <div class="cngrtppdtl-item" id="google_merchant_center_info">
719
  <div class="cngtrpplft">
721
  <?php esc_html_e("Google Merchant Center Account","conversios"); ?>
722
  </div>
723
  <div class="cngtrpprgt" id="selected_google_merchant_center"></div>
724
+ <div>
725
+ <?php echo '<p class="ga-text text-right"><a href="' . esc_url_raw($this->url) . '" class="text-underline"><img class="editbtn" src="'.esc_url_raw(ENHANCAD_PLUGIN_URL.'/admin/images/icon/edit_icon.png').'" alt="refresh"/></a></p>';?>
726
+ </div>
727
  </div>
728
  </div>
729
  </div>
730
  <div class="ppfooterbtn">
731
+ <button type="button" id="confirm_selection" class="ppblubtn"><?php esc_html_e("Confirm and go to Product Sync","conversios"); ?></button>
732
+ <button type="button" id="confirm_selection_dash" class="ppblubtn"><?php esc_html_e("Confirm and go to the Dashboard ","conversios");?> </button>
733
  </div>
734
  </div>
735
  </div>
884
  },
885
  success: function (response) {
886
  //console.log(response);
887
+ if (response.error === false) {
888
+ //console.log(response.return_url);
889
  if(response.return_url){
890
  location.replace( response.return_url);
891
  }else{
898
  });
899
  });
900
 
901
+ jQuery('#confirm_selection_dash').on('click', function(e){
902
+ var conversios_onboarding_nonce = jQuery("#conversios_onboarding_nonce").val();
903
+ var tracking_option = jQuery('input[type=radio][name=analytic_tag_type]:checked').val();
904
+ var view_id = "";
905
+ add_message("warning","Processing... Do not refresh.",false);
906
+ if(tracking_option == "UA"){
907
+ ga_view_id = jQuery("#ua_web_property_id").find(':selected').data('profileid');
908
+ }else{
909
+ ga_view_id = jQuery("#both_web_property_id").find(':selected').data('profileid');
910
+ }
911
+ jQuery.ajax({
912
+ type: "POST",
913
+ dataType: "json",
914
+ url: tvc_ajax_url,
915
+ data: {action: "update_setup_time_to_subscription", tvc_data:tvc_data, subscription_id:subscription_id, ga_view_id:ga_view_id, conversios_onboarding_nonce:conversios_onboarding_nonce},
916
+ beforeSend: function () {
917
+ loaderSection(true);
918
+ },
919
+ success: function (response) {
920
+ //console.log(response);
921
+ if (response.error === false) {
922
+ //console.log(response.return_url);
923
+ if(response.return_url){
924
+ location.replace( "admin.php?page=conversios");
925
+ }else{
926
+ location.replace( "admin.php?page=conversios-google-analytics");
927
+ }
928
+ }else{
929
+ loaderSection(false);
930
+ }
931
+ }
932
+ });
933
+ });
934
+
935
  /**
936
  * Convesios defoult html script
937
  */
986
  //
987
 
988
  function go_next(next_this){
989
+ jQuery(next_this).closest('.onbordording.-step').find('.stepdtltop').attr("data-is-done","1");
990
  jQuery(next_this).closest('.onbordording-step').addClass('selectedactivestep');
991
  jQuery(next_this).closest('.onbordording-step').removeClass('activestep');
992
  jQuery( next_this ).closest('.onbordording-step').next('.onbordording-step').addClass('activestep');
admin/css/style.css CHANGED
@@ -578,7 +578,7 @@ input[type="radio"], input[type="checkbox"]{margin:0;}
578
  .onbrdnpp-hdr h4{margin-bottom:0px;font-weight:500;}
579
  .onbrdpp-body{padding:15px;font-size:16px;line-height:24px;color:#515151;}
580
  .onbrdpp-body p{line-height:24px;}
581
- .onbrdpp-body p:last-child{margin-bottom:0px;}
582
  .onbrdpp-body p strong{color:#1e1e1e;}
583
  .onbrdpp-body h5{margin-bottom:15px;}
584
  .onbrdpp-body ul,.onbrdpp-body ol{padding:0;margin:0;}
@@ -600,7 +600,7 @@ input[type="radio"], input[type="checkbox"]{margin:0;}
600
  .congratppbody{max-width:454px;margin:0 auto;text-align:center;}
601
  .cngtrpplft{position:relative;padding-left:22px;}
602
  .cngrtchckicon{position:absolute;left:0;top:3px;}
603
- .cngtrpprgt{text-align:right;font-weight:700;}
604
  .congratppcntnr .ppfooterbtn{text-align:center;}
605
  .congratppcntnr .onbrdnpp-hdr{padding-top:30px;padding-left:40px;text-align:center;border-bottom:none;}
606
  .congratppcntnr .onbrdnpp-hdr h2{font-size:42px;margin-bottom:0px;line-height:48px;background-color:#002BFC;background-image:linear-gradient(45deg, #002BFC, #00D2F6);background-size:100%;background-repeat:repeat;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-moz-background-clip:text;-moz-text-fill-color:transparent;}
@@ -1372,4 +1372,11 @@ img.img-upload {
1372
  .tvc-auto-product-sync-form .ga-title{position: relative;}
1373
  .tvc-product-sync-toolip{ position: absolute; display: inline-block; width: auto; top: -5px; margin-left: 2px;}
1374
  .tvc-product-sync-toolip .tvc-tooltip-right{ line-height: 1.2; bottom: 6px; left: 125%; top: auto;}
1375
- .tvc-auto-product-sync-form .tvc-pro {margin-left: 20px;}
 
 
 
 
 
 
 
578
  .onbrdnpp-hdr h4{margin-bottom:0px;font-weight:500;}
579
  .onbrdpp-body{padding:15px;font-size:16px;line-height:24px;color:#515151;}
580
  .onbrdpp-body p{line-height:24px;}
581
+ .onbrdpp-body p:last-child{margin-bottom:0px; padding-left:1rem; }
582
  .onbrdpp-body p strong{color:#1e1e1e;}
583
  .onbrdpp-body h5{margin-bottom:15px;}
584
  .onbrdpp-body ul,.onbrdpp-body ol{padding:0;margin:0;}
600
  .congratppbody{max-width:454px;margin:0 auto;text-align:center;}
601
  .cngtrpplft{position:relative;padding-left:22px;}
602
  .cngrtchckicon{position:absolute;left:0;top:3px;}
603
+ .cngtrpprgt{text-align:right;font-weight:700; flex: 1 1 0px;}
604
  .congratppcntnr .ppfooterbtn{text-align:center;}
605
  .congratppcntnr .onbrdnpp-hdr{padding-top:30px;padding-left:40px;text-align:center;border-bottom:none;}
606
  .congratppcntnr .onbrdnpp-hdr h2{font-size:42px;margin-bottom:0px;line-height:48px;background-color:#002BFC;background-image:linear-gradient(45deg, #002BFC, #00D2F6);background-size:100%;background-repeat:repeat;-webkit-background-clip:text;-webkit-text-fill-color:transparent;-moz-background-clip:text;-moz-text-fill-color:transparent;}
1372
  .tvc-auto-product-sync-form .ga-title{position: relative;}
1373
  .tvc-product-sync-toolip{ position: absolute; display: inline-block; width: auto; top: -5px; margin-left: 2px;}
1374
  .tvc-product-sync-toolip .tvc-tooltip-right{ line-height: 1.2; bottom: 6px; left: 125%; top: auto;}
1375
+ .tvc-auto-product-sync-form .tvc-pro {margin-left: 20px;}
1376
+ .dshbrdbtn{
1377
+ color:white;
1378
+ }
1379
+ .editbtn{
1380
+ width:20px;
1381
+ height:20px;
1382
+ }
admin/images/icon/edit_icon.png ADDED
Binary file
enhanced-ecommerce-google-analytics.php CHANGED
@@ -15,12 +15,12 @@
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.8.7
19
  * Author: Conversios
20
  * Author URI: conversios.io
21
  * License: GPL-2.0+
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23
- * Text Domain: conversios.io
24
  * Domain Path: /languages
25
  * WC requires at least: 3.5.0
26
  * WC tested up to: 6.7.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.8.7' );
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.8.8
19
  * Author: Conversios
20
  * Author URI: conversios.io
21
  * License: GPL-2.0+
22
  * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23
+ * Text Domain: conversios
24
  * Domain Path: /languages
25
  * WC requires at least: 3.5.0
26
  * WC tested up to: 6.7.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.8.8' );
41
  $fullName = plugin_basename( __FILE__ );
42
  $dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
43
  if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
includes/class-enhanced-ecommerce-google-analytics-i18n.php CHANGED
@@ -34,7 +34,7 @@ class Enhanced_Ecommerce_Google_Analytics_i18n {
34
  public function load_plugin_textdomain() {
35
 
36
  load_plugin_textdomain(
37
- 'enhanced-ecommerce-google-analytics',
38
  false,
39
  dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
  );
34
  public function load_plugin_textdomain() {
35
 
36
  load_plugin_textdomain(
37
+ 'conversios',
38
  false,
39
  dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'
40
  );
public/class-enhanced-ecommerce-google-analytics-public-pro.php CHANGED
@@ -632,7 +632,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
632
  }
633
  $billing_postcode = WC()->customer->get_billing_postcode();
634
  if($billing_postcode != ""){
635
- $enhanced_conversion["address"]["postcode"] = esc_js($billing_postcode);
636
  }
637
  $billing_city = WC()->customer->get_billing_city();
638
  if($billing_city != ""){
@@ -640,7 +640,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
640
  }
641
  $billing_state = WC()->customer->get_billing_state();
642
  if($billing_state != ""){
643
- $enhanced_conversion["address"]["state"] = esc_js($billing_state);
644
  }
645
  $billing_country = WC()->customer->get_billing_country();
646
  if($billing_country != ""){
@@ -658,9 +658,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
658
  "first_name":enhanced_conversion_data.address.first_name,
659
  "last_name":enhanced_conversion_data.address.last_name,
660
  "street":enhanced_conversion_data.address.street,
661
- "postcode":enhanced_conversion_data.address.postcode,
662
  "city":enhanced_conversion_data.address.city,
663
- "state":enhanced_conversion_data.address.state,
664
  "country":enhanced_conversion_data.address.country
665
  });
666
  </script>
@@ -701,21 +701,17 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
701
  if($billing_address_1 != ""){
702
  $enhanced_conversion["address"]["street"] = esc_js($billing_address_1);
703
  }
704
- $billing_address_2 = $order->get_billing_address_2();
705
- if($billing_address_2 != ""){
706
- $enhanced_conversion["address"]["street_address"] = esc_js($billing_address_2);
707
- }
708
  $billing_city = $order->get_billing_city();
709
  if($billing_city != ""){
710
  $enhanced_conversion["address"]["city"] = esc_js($billing_city);
711
  }
712
  $billing_state = $order->get_billing_state();
713
  if($billing_state != ""){
714
- $enhanced_conversion["address"]["state"] = esc_js($billing_state);
715
  }
716
  $billing_postcode = $order->get_billing_postcode();
717
  if($billing_postcode != ""){
718
- $enhanced_conversion["address"]["postcode"] = esc_js($billing_postcode);
719
  }
720
  $billing_country = $order->get_billing_country();
721
  if($billing_country != ""){
@@ -733,9 +729,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
733
  "first_name":enhanced_conversion_data.address.first_name,
734
  "last_name":enhanced_conversion_data.address.last_name,
735
  "street":enhanced_conversion_data.address.street,
736
- "postcode":enhanced_conversion_data.address.postcode,
737
  "city":enhanced_conversion_data.address.city,
738
- "state":enhanced_conversion_data.address.state,
739
  "country":enhanced_conversion_data.address.country
740
  });
741
  </script>
632
  }
633
  $billing_postcode = WC()->customer->get_billing_postcode();
634
  if($billing_postcode != ""){
635
+ $enhanced_conversion["address"]["postal_code"] = esc_js($billing_postcode);
636
  }
637
  $billing_city = WC()->customer->get_billing_city();
638
  if($billing_city != ""){
640
  }
641
  $billing_state = WC()->customer->get_billing_state();
642
  if($billing_state != ""){
643
+ $enhanced_conversion["address"]["region"] = esc_js($billing_state);
644
  }
645
  $billing_country = WC()->customer->get_billing_country();
646
  if($billing_country != ""){
658
  "first_name":enhanced_conversion_data.address.first_name,
659
  "last_name":enhanced_conversion_data.address.last_name,
660
  "street":enhanced_conversion_data.address.street,
661
+ "postal_code":enhanced_conversion_data.address.postal_code,
662
  "city":enhanced_conversion_data.address.city,
663
+ "region":enhanced_conversion_data.address.region,
664
  "country":enhanced_conversion_data.address.country
665
  });
666
  </script>
701
  if($billing_address_1 != ""){
702
  $enhanced_conversion["address"]["street"] = esc_js($billing_address_1);
703
  }
 
 
 
 
704
  $billing_city = $order->get_billing_city();
705
  if($billing_city != ""){
706
  $enhanced_conversion["address"]["city"] = esc_js($billing_city);
707
  }
708
  $billing_state = $order->get_billing_state();
709
  if($billing_state != ""){
710
+ $enhanced_conversion["address"]["region"] = esc_js($billing_state);
711
  }
712
  $billing_postcode = $order->get_billing_postcode();
713
  if($billing_postcode != ""){
714
+ $enhanced_conversion["address"]["postal_code"] = esc_js($billing_postcode);
715
  }
716
  $billing_country = $order->get_billing_country();
717
  if($billing_country != ""){
729
  "first_name":enhanced_conversion_data.address.first_name,
730
  "last_name":enhanced_conversion_data.address.last_name,
731
  "street":enhanced_conversion_data.address.street,
732
+ "postal_code":enhanced_conversion_data.address.postal_code,
733
  "city":enhanced_conversion_data.address.city,
734
+ "region":enhanced_conversion_data.address.region,
735
  "country":enhanced_conversion_data.address.country
736
  });
737
  </script>
readme.txt CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
8
  Requires at least: 3.5.0
9
  Tested up to: 6.0.1
10
  Requires PHP: 5.6 or Higher
11
- Stable tag: 4.8.7
12
- Version: 4.8.7
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
@@ -416,6 +416,8 @@ In GA3 (Universal Analytics) usually, it takes 0 to 45 mins and in GA4 it can ta
416
 
417
 
418
  == Changelog ==
 
 
419
  = 4.8.7 - 09/08/2022 =
420
  * Long awaited product sync feature is out for our Pro users. Now you can manage your product sync duration and product batch size on your own at your convenience.
421
 
8
  Requires at least: 3.5.0
9
  Tested up to: 6.0.1
10
  Requires PHP: 5.6 or Higher
11
+ Stable tag: 4.8.8
12
+ Version: 4.8.8
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
416
 
417
 
418
  == Changelog ==
419
+ = 4.8.8 - 22/08/2022 =
420
+ For ease of onboarding and better user understanding, we have enhanced our UI and content. Also we have fixed some minor issues wrt to the enhanced conversion tracking.
421
  = 4.8.7 - 09/08/2022 =
422
  * Long awaited product sync feature is out for our Pro users. Now you can manage your product sync duration and product batch size on your own at your convenience.
423