Enhanced Ecommerce Google Analytics Plugin for WooCommerce - Version 4.8.4

Version Description

  • 21/07/2022 =
  • Fix: Code optimization in terms of Google ads Conversion tracking.
Download this release

Release Info

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

Code changes from version 4.8.3 to 4.8.4

enhanced-ecommerce-google-analytics.php CHANGED
@@ -15,7 +15,7 @@
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.3
19
  * Author: Conversios
20
  * Author URI: conversios.io
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.8.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: 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.4
19
  * Author: Conversios
20
  * Author URI: conversios.io
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.8.4' );
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
@@ -320,7 +320,7 @@ class CustomApi{
320
  return $e->getMessage();
321
  }
322
  }
323
- public function get_conversion_list($customer_id, $merchant_id) {
324
  try {
325
  $header = array(
326
  "Authorization: Bearer MTIzNA==",
@@ -328,7 +328,6 @@ class CustomApi{
328
  );
329
  $url = $this->apiDomain . "/google-ads/conversion-list";
330
  $data = [
331
- 'merchant_id' => sanitize_text_field($merchant_id),
332
  'customer_id' => sanitize_text_field($customer_id)
333
  ];
334
  $args = array(
320
  return $e->getMessage();
321
  }
322
  }
323
+ public function get_conversion_list($customer_id) {
324
  try {
325
  $header = array(
326
  "Authorization: Bearer MTIzNA==",
328
  );
329
  $url = $this->apiDomain . "/google-ads/conversion-list";
330
  $data = [
 
331
  'customer_id' => sanitize_text_field($customer_id)
332
  ];
333
  $args = array(
includes/setup/google-ads.php CHANGED
@@ -10,7 +10,6 @@ class GoogleAds {
10
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
11
  $this->customApiObj = new CustomApi();
12
  $this->current_customer_id = $this->TVC_Admin_Helper->get_currentCustomerId();
13
- $this->merchant_id = $this->TVC_Admin_Helper->get_merchantId();
14
  $this->url = $this->TVC_Admin_Helper->get_onboarding_page_url();
15
  $this->subscriptionId = $this->TVC_Admin_Helper->get_subscriptionId();
16
  $this->google_detail = $this->TVC_Admin_Helper->get_ee_options_data();
@@ -205,10 +204,10 @@ class GoogleAds {
205
  <div class="col-md-12">
206
  <div class="form-group">
207
  <?php
208
- if($this->current_customer_id != "" && $this->merchant_id != ""){
209
- $response = $this->customApiObj->get_conversion_list($this->current_customer_id, $this->merchant_id);
210
  if(property_exists($response,"error") && $response->error == true){
211
- echo "<div class='google_conversion_label_message alert alert-danger google_ads_conversion_label_message' role='alert'>No conversion label associated with this google ads id.</div>";
212
  }
213
  if(property_exists($response,"error") && $response->error == false){
214
  if(property_exists($response,"data") && $response->data != "" && !empty($response->data)){
10
  $this->TVC_Admin_Helper = new TVC_Admin_Helper();
11
  $this->customApiObj = new CustomApi();
12
  $this->current_customer_id = $this->TVC_Admin_Helper->get_currentCustomerId();
 
13
  $this->url = $this->TVC_Admin_Helper->get_onboarding_page_url();
14
  $this->subscriptionId = $this->TVC_Admin_Helper->get_subscriptionId();
15
  $this->google_detail = $this->TVC_Admin_Helper->get_ee_options_data();
204
  <div class="col-md-12">
205
  <div class="form-group">
206
  <?php
207
+ if($this->current_customer_id != ""){
208
+ $response = $this->customApiObj->get_conversion_list($this->current_customer_id);
209
  if(property_exists($response,"error") && $response->error == true){
210
+ echo "<div class='google_conversion_label_message alert alert-danger google_ads_conversion_label_message' role='alert'>No conversion labels are retrived, kindly refersh once else check if conversion label is available in your google ads account.</div>";
211
  }
212
  if(property_exists($response,"error") && $response->error == false){
213
  if(property_exists($response,"data") && $response->data != "" && !empty($response->data)){
public/class-enhanced-ecommerce-google-analytics-public-pro.php CHANGED
@@ -219,6 +219,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
219
  //add_action("wp_ajax_nopriv_get_variation_data" , "get_variation_data");
220
  }
221
  public function getAttributesVariation($product) {
 
222
  //variations start
223
  if ($product->get_type() === "variable" || $product->get_type() === "variation") {
224
  //variant data
219
  //add_action("wp_ajax_nopriv_get_variation_data" , "get_variation_data");
220
  }
221
  public function getAttributesVariation($product) {
222
+ $prod_var_array = array();
223
  //variations start
224
  if ($product->get_type() === "variable" || $product->get_type() === "variation") {
225
  //variant data
readme.txt CHANGED
@@ -1,53 +1,41 @@
1
- === Conversios.io - Google Analytics (GA4) and Google Shopping plugin for WooCommerce ===
2
- Contributors: Conversios
3
  Plugin Name: Enhanced Ecommerce for WooCommerce Store
4
  Plugin URI: https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/
5
- Tags: GA4, 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, Reporting, Dashboard
6
  Author URI: https://conversios.io/
7
- Author: Conversios
8
  Requires at least: 3.5.0
9
- Tested up to: 6.0
10
  Requires PHP: 5.6 or Higher
11
- Stable tag: 4.8.3
12
- Version: 4.8.3
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
16
- Business Enhancer plugin which sets up Google Analytics (GA4) for enhanced e-commerce, provides analysis and reports, manages your product feed in Google Merchant Centre (GMC) and run Google shopping Ads.
17
 
18
  == Product Description ==
19
 
20
- https://youtu.be/s-L6VvY0sVw?rel=0
21
- ###Business Enhancer with GA4 and Google shopping Ads for WooCommerce
22
-
23
- A single plugin which will provide you with all the arsenal you will need to run your ecommerce store effectively
24
-
25
- - Implement GA4
26
- - Implement enhanced e-commerce for deeper tracking
27
- - Reporting and Dashboard which show how your customers are behaving
28
- - Tight integration and synchronization with Google Merchant Centre (GMC) to keep your product feed updated
29
- - Manage your Google Shopping Ads to promote the selected SKU
30
- - Dynamic Remarketing tags for eCommerce events
31
- - US$ 500 free Google Ads credit for first time users of Google Shopping Ads.
32
- - Developed and sold by a leading Google Premium Partner who has been providing solutions since 2008.
33
- - Product road map includes integrating multiple marketing platforms and will be free upgrade to current users.
34
 
35
  ###GOOGLE ANALYTICS INTEGRATION FOR WOOCOMMERCE
36
 
37
- The new and enhanced Ecommerce Google Analytics Plugin for WooCommerce is there to help you - Know and Measure What Matters To Your Business.
38
 
39
- As a Premium Google Ads Partner, we are delighted to bring a new and enhanced Google Analytics Integration Plugin that does all the eCommerce tracking in Google Analytics. We have 40000+ active eCommerce businesses across 150 countries using, benefitting, growing from this plugin. The plugin is ready for Google Analytics 4 (GA4)
40
 
41
- By opening an e-commerce store, your job is half done. To run it efficiently, drive traffic to your website, and increase conversions, you have to do one more thing. Know Your Shoppers Well!
42
 
43
- And how will you do that? Well, Start with Understanding, Measuring, and Tracking their entire user journey with the help of Google Analytics Tracking for WooCommerce.
44
 
45
- * Know users likes & preferences
 
46
  * Offer them better experiences
47
  * Simplify their shopping process
48
- * Remove all the roadblocks that slow down or come in the way of conversion
49
 
50
- The enhanced eCommerce Google Analytics plugin for WooCommerce will show you all the stats that matter. The plugin is apt in helping global eCommerce businesses scale faster by integrating eCommerce tracking in Google Analytics for both the Universal Analytics (Google Analytics v3) and the Google Analytics 4 properties.
51
 
52
  ###AUTOMATE DYNAMIC REMARKETING TAGS FOR ECOMMERCE EVENTS - NEW FEATURE OF THE GOOGLE SHOPPING PLUGIN FOR WOOCOMMERCE
53
 
@@ -60,7 +48,7 @@ Check the recent release of the Enhanced Ecommerce Google Analytics plugin for W
60
  ###USER MANUAL
61
  <a target="_blank" href="https://conversios.io/help-center/Installation-Manual.pdf">Here is how you can configure the plugin without any hassle and start scaling your eCommerce business faster.</a>
62
 
63
- ###Plugin Compatibility
64
 
65
  * Perfect Brands for WooCommerce
66
  * YITH WooCommerce Brands️
@@ -73,14 +61,16 @@ Check the recent release of the Enhanced Ecommerce Google Analytics plugin for W
73
  ###YOU GET BIG BENEFITS
74
 
75
  eCommerce businesses can -
 
76
  * Start making data-driven decisions.
77
  * Re-targeting the shoppers based on their past site behaviour.
78
- * Become eligible for free listing across Google to reach millions of interested shoppers across Google.
 
79
  * Run your google shopping campaigns smoothly.
80
 
81
- Achieve all this by connecting Google Analytics, Google Ads, and Google Merchant Center accounts. Want to know what is the best part?
82
 
83
- * NO CODING REQUIRED or NO NEED TO HIRE A DEVELOPER for the setup. You can configure the plugin instantly in under 5 minutes and with a few clicks from your WordPress backend.
84
 
85
 
86
  New users can get $500 in Ad Credits when they spend their first $500 on Google Ads within 60 days. (amount differs based on the country you are in) <a target="_blank" href ="https://conversios.io/help-center/new-google-spend-match.pdf">See terms and condition.</a>
@@ -161,6 +151,7 @@ Enhanced eCommerce Google analytics plugin tracks the entire user journey on you
161
  17. Shopping campaign performance dashboard
162
  18. Product Sync dashboard
163
  19. Facebook Pixel Conversion Tracking (Basic ecommerce events)
 
164
 
165
  <strong><a target="_blank" href="https://conversios.io/pricings/?utm_source=EE+Plugin+Wordpress+Listing&utm_medium=Below+Free+Features&utm_campaign=Upsell+at+Conversios"> Fast track and scale your eCommerce business to new heights by unlocking more advanced tracking and enabling complete google shopping solutions for your WooCommerce store. Give a try to our pro version.</a></strong>
166
 
@@ -402,14 +393,38 @@ There could be duplicate tracking via manually implemented GA tracking snippet a
402
 
403
  You can resolve the duplication of data by removing the manually implemented GA tracking snippet and/or other GA tracking plugin. The duplication of tracking via GTM can be resolved by removing the custom tags and triggers which track the duplicate data
404
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
405
 
406
 
407
  == Changelog ==
 
 
 
 
408
  = 4.8.3 - 18/07/2022 =
409
  * New Feature (PRO) - Improve accuracy of ads Conversion tracking by enabling Google ads enhanced conversions. Users can also select the conversion label for specific conversion tracking (if any) in Google ads.
410
 
411
  = 4.8.2 - 12/07/2022 =
412
- * NEW: (PRO) You can now track your order refund for Google Analytics GA4 and GA3
413
 
414
  = 4.8.1 - 21/06/2022 =
415
  * Fix: In this release, optimzation of code in terms of Pmax Campaign.
1
+ === Conversios.io - Google Analytics and Google Shopping plugin for WooCommerce ===
2
+ Contributors: Tatvic, Conversios
3
  Plugin Name: Enhanced Ecommerce for WooCommerce Store
4
  Plugin URI: https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/
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.5.0
9
+ Tested up to: 6.0.1
10
  Requires PHP: 5.6 or Higher
11
+ Stable tag: 4.8.4
12
+ Version: 4.8.4
13
  License: GPLv3
14
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
15
 
16
+ A WooCommerce plugin that integrates Google Analytics - eCommerce tracking and automates end-to-end Google Shopping with quality product feed and dynamic remarketing tags under 5 minutes.
17
 
18
  == Product Description ==
19
 
20
+ https://www.youtube.com/watch?v=OWTXa6_nQgI&rel=0
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
  ###GOOGLE ANALYTICS INTEGRATION FOR WOOCOMMERCE
23
 
24
+ The new and enhanced Ecommerce Google Analytics Plugin for WooCommerce is there to help you - Know, Measure and Track What Matters To Your Business.
25
 
26
+ As a Premium Google Ads Partner, we are delighted to bring a new and enhanced Google Analytics Integration Plugin that does all your eCommerce tracking in Google Analytics. We have 40000+ active eCommerce businesses across 150 countries using, benefitting, growing from this plugin. The plugin is ready and compatible with Google Analytics 4 (GA4)
27
 
28
+ Opening an e-commerce store is only the starting, to run it efficiently, to drive traffic to your website, and increase conversions, you have to do one more thing and that is to know your shoppers and what is thier shopping behavoir!
29
 
30
+ And how will you do that? Well, Start with Understanding, Measuring, tracking their journey and thier shopping preferences with the help of Google Analytics Tracking for WooCommerce.
31
 
32
+ * Know your users likes & preferences
33
+ * Track them and understand thier shopping behavior and products
34
  * Offer them better experiences
35
  * Simplify their shopping process
36
+ * Remove all the obstacles that slow down user conversion
37
 
38
+ The enhanced eCommerce Google Analytics plugin for WooCommerce will show you all the statistics that matters. The plugin is apt in helping global eCommerce businesses scale faster by integrating eCommerce tracking in Google Analytics for both the Universal Analytics (Google Analytics v3) and the Google Analytics 4 properties.
39
 
40
  ###AUTOMATE DYNAMIC REMARKETING TAGS FOR ECOMMERCE EVENTS - NEW FEATURE OF THE GOOGLE SHOPPING PLUGIN FOR WOOCOMMERCE
41
 
48
  ###USER MANUAL
49
  <a target="_blank" href="https://conversios.io/help-center/Installation-Manual.pdf">Here is how you can configure the plugin without any hassle and start scaling your eCommerce business faster.</a>
50
 
51
+ ###Conversios is compatible with following major plugins
52
 
53
  * Perfect Brands for WooCommerce
54
  * YITH WooCommerce Brands️
61
  ###YOU GET BIG BENEFITS
62
 
63
  eCommerce businesses can -
64
+
65
  * Start making data-driven decisions.
66
  * Re-targeting the shoppers based on their past site behaviour.
67
+ * Help them run google ads with the help of Pmax and increase product reach
68
+ * Become eligible for free listing across Google to reach millions of interested shoppers across the web.
69
  * Run your google shopping campaigns smoothly.
70
 
71
+ Achieve all this by connecting Google Analytics, Google Ads, and Google Merchant Center accounts with Conversios on single click. Want to know what is the best part?
72
 
73
+ * NO CODING, NO DEVELOPER required for any kind of setup. You can configure the plugin instantly in under 5 minutes and with a few clicks from your WordPress backend.
74
 
75
 
76
  New users can get $500 in Ad Credits when they spend their first $500 on Google Ads within 60 days. (amount differs based on the country you are in) <a target="_blank" href ="https://conversios.io/help-center/new-google-spend-match.pdf">See terms and condition.</a>
151
  17. Shopping campaign performance dashboard
152
  18. Product Sync dashboard
153
  19. Facebook Pixel Conversion Tracking (Basic ecommerce events)
154
+ 20. PMAX, Performance Max is a new goal-based campaign type that allows performance advertisers to access all of their Google Ads inventory from a single campaign
155
 
156
  <strong><a target="_blank" href="https://conversios.io/pricings/?utm_source=EE+Plugin+Wordpress+Listing&utm_medium=Below+Free+Features&utm_campaign=Upsell+at+Conversios"> Fast track and scale your eCommerce business to new heights by unlocking more advanced tracking and enabling complete google shopping solutions for your WooCommerce store. Give a try to our pro version.</a></strong>
157
 
393
 
394
  You can resolve the duplication of data by removing the manually implemented GA tracking snippet and/or other GA tracking plugin. The duplication of tracking via GTM can be resolved by removing the custom tags and triggers which track the duplicate data
395
 
396
+ = What is the use of order refunds?/Does this plugin track refund orders? =
397
+
398
+ Yes, it does. It helps in tracking the amount of refund given in a specific time period to make data-driven decisions.
399
+
400
+ = What kind of order refund does conversios support? =
401
+
402
+ Conversios supports both kinds of refunds namely full and partial refunds.
403
+
404
+ = Where can the user check the order refunds? =
405
+
406
+ User can check the same from our Google Analytics (Universal Analytics and GA4) reports.
407
+
408
+ = What do you need to use for order refunds in GA3 (Universal Analytics) and GA4? =
409
+
410
+ In GA3 Plugin automatically captures the full as well as partial refund transactions, where nothing is to be changed in terms of settings/code level in the plugin. In GA4, tracking happens based on API hits hence in GA4 - the API secret key needs to be updated to the backend from Google Analytics.
411
+
412
+ = How much time will it take to push the refund data to Google analytics? =
413
+
414
+ In GA3 (Universal Analytics) usually, it takes 0 to 45 mins and in GA4 it can take 24 to 48 hours from the time of refund is made in woocommerce.
415
+
416
 
417
 
418
  == Changelog ==
419
+
420
+ = 4.8.4 - 21/07/2022 =
421
+ * Fix: Code optimization in terms of Google ads Conversion tracking.
422
+
423
  = 4.8.3 - 18/07/2022 =
424
  * New Feature (PRO) - Improve accuracy of ads Conversion tracking by enabling Google ads enhanced conversions. Users can also select the conversion label for specific conversion tracking (if any) in Google ads.
425
 
426
  = 4.8.2 - 12/07/2022 =
427
+ * NEW: (PRO) You can also track your order refund in Google Analytics GA4 and GA3.
428
 
429
  = 4.8.1 - 21/06/2022 =
430
  * Fix: In this release, optimzation of code in terms of Pmax Campaign.