Version Description
- 07/06/2022 =
- NEW: (PRO) Add the New features "Content Grouping" for Google Analytics tracking & "Google Optimize tracking".
Download this release
Release Info
Developer | ramniktatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 4.7.5 |
Comparing to | |
See all releases |
Code changes from version 4.7.4 to 4.7.5
admin/helper/class-onboarding-helper.php
CHANGED
@@ -320,6 +320,12 @@ if(!class_exists('Conversios_Onboarding_Helper')):
|
|
320 |
$settings['ga_PrivacyPolicy'] = 'on';
|
321 |
$settings['google-analytic'] = '';
|
322 |
$settings['fb_pixel_id'] = isset($old_setting['fb_pixel_id'])?$old_setting['fb_pixel_id']:"";
|
|
|
|
|
|
|
|
|
|
|
|
|
323 |
//update option in wordpress local database
|
324 |
update_option('google_ads_conversion_tracking', $googleDetail->google_ads_conversion_tracking);
|
325 |
update_option('ads_tracking_id', $googleDetail->google_ads_id);
|
320 |
$settings['ga_PrivacyPolicy'] = 'on';
|
321 |
$settings['google-analytic'] = '';
|
322 |
$settings['fb_pixel_id'] = isset($old_setting['fb_pixel_id'])?$old_setting['fb_pixel_id']:"";
|
323 |
+
$settings['ga_CG'] = isset($old_setting['ga_CG'])?$old_setting['ga_CG']:"";
|
324 |
+
$settings['ga_optimize_id'] = isset($old_setting['ga_optimize_id'])?$old_setting['ga_optimize_id']:"";
|
325 |
+
|
326 |
+
$settings['tvc_conversion_tracking_type'] = isset($old_setting['tvc_conversion_tracking_type'])?$old_setting['tvc_conversion_tracking_type']:"";
|
327 |
+
$settings['tvc_product_detail_conversion_tracking_type'] = isset($old_setting['tvc_product_detail_conversion_tracking_type'])?$old_setting['tvc_product_detail_conversion_tracking_type']:"";
|
328 |
+
$settings['tvc_checkout_conversion_tracking_type'] = isset($old_setting['tvc_checkout_conversion_tracking_type'])?$old_setting['tvc_checkout_conversion_tracking_type']:"";
|
329 |
//update option in wordpress local database
|
330 |
update_option('google_ads_conversion_tracking', $googleDetail->google_ads_conversion_tracking);
|
331 |
update_option('ads_tracking_id', $googleDetail->google_ads_id);
|
admin/partials/general-fields.php
CHANGED
@@ -17,7 +17,10 @@ if (isset($_POST['ee_submit_plugin'])) {
|
|
17 |
update_option('ads_tracking_id', sanitize_text_field($_POST['google_ads_id']));
|
18 |
|
19 |
$settings['ga_eeT'] = isset($_POST["ga_eeT"])?sanitize_text_field($_POST["ga_eeT"]):"";
|
20 |
-
|
|
|
|
|
|
|
21 |
$settings['ga_ST'] = isset($_POST["ga_ST"])?sanitize_text_field($_POST["ga_ST"]):"";
|
22 |
$settings['gm_id'] = isset($_POST["gm_id"])?sanitize_text_field($_POST["gm_id"]):"";
|
23 |
$settings['ga_id'] = isset($_POST["ga_id"])?sanitize_text_field($_POST["ga_id"]):"";
|
@@ -159,7 +162,7 @@ if(isset($google_detail['setting'])){
|
|
159 |
<table class="table">
|
160 |
<tbody>
|
161 |
<tr>
|
162 |
-
<th>
|
163 |
<label class="align-middle" for="tracking_code"><?php esc_html_e("Tracking Code","conversios"); ?></label>
|
164 |
</th>
|
165 |
<td>
|
@@ -186,6 +189,28 @@ if(isset($google_detail['setting'])){
|
|
186 |
</label>
|
187 |
</td>
|
188 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
<tr>
|
190 |
<th>
|
191 |
<label for="ga_Impr"><?php esc_html_e("Impression Thresold","conversios"); ?></label>
|
17 |
update_option('ads_tracking_id', sanitize_text_field($_POST['google_ads_id']));
|
18 |
|
19 |
$settings['ga_eeT'] = isset($_POST["ga_eeT"])?sanitize_text_field($_POST["ga_eeT"]):"";
|
20 |
+
//content grouping start
|
21 |
+
$settings['ga_CG'] = isset($_POST["ga_CG"])?sanitize_text_field($_POST["ga_CG"]):"";
|
22 |
+
$settings['ga_optimize_id'] = isset($_POST["ga_optimize_id"])?sanitize_text_field($_POST["ga_optimize_id"]):"";
|
23 |
+
//content grouping end
|
24 |
$settings['ga_ST'] = isset($_POST["ga_ST"])?sanitize_text_field($_POST["ga_ST"]):"";
|
25 |
$settings['gm_id'] = isset($_POST["gm_id"])?sanitize_text_field($_POST["gm_id"]):"";
|
26 |
$settings['ga_id'] = isset($_POST["ga_id"])?sanitize_text_field($_POST["ga_id"]):"";
|
162 |
<table class="table">
|
163 |
<tbody>
|
164 |
<tr>
|
165 |
+
<th width="150px">
|
166 |
<label class="align-middle" for="tracking_code"><?php esc_html_e("Tracking Code","conversios"); ?></label>
|
167 |
</th>
|
168 |
<td>
|
189 |
</label>
|
190 |
</td>
|
191 |
</tr>
|
192 |
+
<tr>
|
193 |
+
<th>
|
194 |
+
<label class="align-middle" for= "ga_CG" ><?php esc_html_e("Content Grouping","conversios"); ?></label>
|
195 |
+
</th>
|
196 |
+
<td>
|
197 |
+
<label class = "align-middle">
|
198 |
+
<?php $ga_CG = !empty($data['ga_CG']) ? 'checked' : ''; ?>
|
199 |
+
<input type="checkbox" name="ga_CG" id="ga_CG" <?php echo esc_attr($ga_CG);?> >
|
200 |
+
<label class="custom-control-label" for="ga_CG"><?php esc_html_e("Add Code to enable content grouping","conversios"); ?> <i>(Optional)</i></label>
|
201 |
+
<p class="description" style="text-align: justify;"><?php esc_html_e("Content grouping helps you group your web pages (content). To use this feature create Content Grouping in your GA as instructed in the","conversios"); ?> <a href="<?php echo esc_url_raw("https://conversios.io/help-center/Installation-Manual.pdf"); ?>" target="_blank"><?php esc_html_e("Installation Doc","conversios"); ?></a>.</p>
|
202 |
+
</label>
|
203 |
+
</td>
|
204 |
+
</tr>
|
205 |
+
<tr>
|
206 |
+
<th>
|
207 |
+
<label class="align-middle" for= "ga_optimize" ><?php esc_html_e("Google Optimize","conversios"); ?></label>
|
208 |
+
</th>
|
209 |
+
<td>
|
210 |
+
<input style="margin-top:10px;" type="text" size="30" name="ga_optimize_id" id="ga_optimize_id" value = "<?php echo !empty($data['ga_optimize_id']) ? esc_attr($data['ga_optimize_id']) : '';?>" placeholder="<?php esc_html_e("Google Optimize ID","conversios"); ?>">
|
211 |
+
<i style="cursor: help;" class="fas fa-question-circle" id="ga_optimize_id" title="Enter a valid google optimize container ID."></i>
|
212 |
+
</td>
|
213 |
+
</tr>
|
214 |
<tr>
|
215 |
<th>
|
216 |
<label for="ga_Impr"><?php esc_html_e("Impression Thresold","conversios"); ?></label>
|
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* registers the activation and deactivation functions, and defines a function
|
8 |
* that starts the plugin.
|
9 |
*
|
10 |
-
* @link
|
11 |
* @since 1.0.0
|
12 |
* @package Enhanced E-commerce for Woocommerce store
|
13 |
*
|
@@ -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.7.
|
19 |
-
* Author:
|
20 |
-
* Author URI:
|
21 |
* License: GPL-2.0+
|
22 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
|
23 |
-
* Text Domain:
|
24 |
* Domain Path: /languages
|
25 |
* WC requires at least: 3.5.0
|
26 |
* WC tested up to: 6.5.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.7.
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
7 |
* registers the activation and deactivation functions, and defines a function
|
8 |
* that starts the plugin.
|
9 |
*
|
10 |
+
* @link conversios.io
|
11 |
* @since 1.0.0
|
12 |
* @package Enhanced E-commerce for Woocommerce store
|
13 |
*
|
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.7.5
|
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.5.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.7.5' );
|
41 |
$fullName = plugin_basename( __FILE__ );
|
42 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
43 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
public/class-enhanced-ecommerce-google-analytics-public-pro.php
CHANGED
@@ -30,7 +30,10 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
30 |
//set plugin version
|
31 |
protected $plugin_name;
|
32 |
protected $version;
|
33 |
-
|
|
|
|
|
|
|
34 |
public $tvc_eeVer = PLUGIN_TVC_VERSION;
|
35 |
protected $ga_LC;
|
36 |
protected $ga_Dname;
|
@@ -80,6 +83,8 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
80 |
$this->TVC_Admin_Helper = new TVC_Admin_Helper();
|
81 |
$this->plugin_name = sanitize_text_field($plugin_name);
|
82 |
$this->version = sanitize_text_field($version);
|
|
|
|
|
83 |
$this->ee_options = $this->TVC_Admin_Helper->get_ee_options_settings();
|
84 |
$this->tvc_conversion_tracking_type = sanitize_text_field($this->get_option("tvc_conversion_tracking_type"));
|
85 |
$this->tvc_product_detail_tracking_type = sanitize_text_field($this->get_option("tvc_product_detail_conversion_tracking_type"));
|
@@ -210,7 +215,6 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
210 |
//add_action('wp_ajax_get_variation_data', array($this,'get_variation_data') );
|
211 |
//add_action("wp_ajax_nopriv_get_variation_data" , "get_variation_data");
|
212 |
}
|
213 |
-
|
214 |
public function getAttributesVariation($product) {
|
215 |
//variations start
|
216 |
if ($product->get_type() === "variable" || $product->get_type() === "variation") {
|
@@ -340,6 +344,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
340 |
'tvc_wpv' => esc_js(get_bloginfo('version')),
|
341 |
'tvc_eev' => esc_js($this->tvc_eeVer),
|
342 |
'tvc_cnf' => array(
|
|
|
343 |
't_ee' => esc_js($this->ga_eeT),
|
344 |
't_df' => esc_js($this->ga_DF),
|
345 |
't_gUser' => esc_js($this->ga_gUser),
|
@@ -440,6 +445,19 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
440 |
} else {
|
441 |
$ga_ip_anonymization ="";
|
442 |
}?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
<script type="text/javascript" defer="defer">
|
444 |
var adsTringId = '<?php echo esc_js($this->ads_tracking_id); ?>';
|
445 |
var ads_ert = '<?php echo esc_js($this->ads_ert); ?>';
|
@@ -561,6 +579,11 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
561 |
</script>
|
562 |
<?php
|
563 |
}
|
|
|
|
|
|
|
|
|
|
|
564 |
//add remarketing snippets
|
565 |
if($this->ads_tracking_id && ($this->ads_ert || $this->ads_edrt)){
|
566 |
if(!empty($this->remarketing_snippets) && $this->remarketing_snippets){
|
30 |
//set plugin version
|
31 |
protected $plugin_name;
|
32 |
protected $version;
|
33 |
+
//content grouping start
|
34 |
+
protected $ga_optimize_id;
|
35 |
+
protected $ga_CG;
|
36 |
+
//content grouping end
|
37 |
public $tvc_eeVer = PLUGIN_TVC_VERSION;
|
38 |
protected $ga_LC;
|
39 |
protected $ga_Dname;
|
83 |
$this->TVC_Admin_Helper = new TVC_Admin_Helper();
|
84 |
$this->plugin_name = sanitize_text_field($plugin_name);
|
85 |
$this->version = sanitize_text_field($version);
|
86 |
+
$this->ga_CG = $this->get_option('ga_CG') == "on" ? true : false; // Content Grouping
|
87 |
+
$this->ga_optimize_id = sanitize_text_field($this->get_option("ga_optimize_id"));
|
88 |
$this->ee_options = $this->TVC_Admin_Helper->get_ee_options_settings();
|
89 |
$this->tvc_conversion_tracking_type = sanitize_text_field($this->get_option("tvc_conversion_tracking_type"));
|
90 |
$this->tvc_product_detail_tracking_type = sanitize_text_field($this->get_option("tvc_product_detail_conversion_tracking_type"));
|
215 |
//add_action('wp_ajax_get_variation_data', array($this,'get_variation_data') );
|
216 |
//add_action("wp_ajax_nopriv_get_variation_data" , "get_variation_data");
|
217 |
}
|
|
|
218 |
public function getAttributesVariation($product) {
|
219 |
//variations start
|
220 |
if ($product->get_type() === "variable" || $product->get_type() === "variation") {
|
344 |
'tvc_wpv' => esc_js(get_bloginfo('version')),
|
345 |
'tvc_eev' => esc_js($this->tvc_eeVer),
|
346 |
'tvc_cnf' => array(
|
347 |
+
't_cg' => esc_js($this->ga_CG),
|
348 |
't_ee' => esc_js($this->ga_eeT),
|
349 |
't_df' => esc_js($this->ga_DF),
|
350 |
't_gUser' => esc_js($this->ga_gUser),
|
445 |
} else {
|
446 |
$ga_ip_anonymization ="";
|
447 |
}?>
|
448 |
+
<?php if ($this->ga_optimize_id ){?>
|
449 |
+
<!--Conversios.io – Google optimize start-->
|
450 |
+
<style>.async-hide { opacity: 0 !important} </style>
|
451 |
+
<script>
|
452 |
+
(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
|
453 |
+
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
|
454 |
+
(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;
|
455 |
+
})(window,document.documentElement,'async-hide','dataLayer',4000,
|
456 |
+
{'<?php echo esc_js($this->ga_optimize_id); ?>':true});
|
457 |
+
</script>
|
458 |
+
<script src="https://www.googleoptimize.com/optimize.js?id=<?php echo esc_js($this->ga_optimize_id); ?>"></script>
|
459 |
+
<!--Conversios.io – Google optimize end-->
|
460 |
+
<?php } ?>
|
461 |
<script type="text/javascript" defer="defer">
|
462 |
var adsTringId = '<?php echo esc_js($this->ads_tracking_id); ?>';
|
463 |
var ads_ert = '<?php echo esc_js($this->ads_ert); ?>';
|
579 |
</script>
|
580 |
<?php
|
581 |
}
|
582 |
+
if($this->ga_CG){?>
|
583 |
+
<script>
|
584 |
+
gtag('set', {'content_group': '<?php echo esc_js($this->add_page_type());?>'});
|
585 |
+
</script>
|
586 |
+
<?php }
|
587 |
//add remarketing snippets
|
588 |
if($this->ads_tracking_id && ($this->ads_ert || $this->ads_edrt)){
|
589 |
if(!empty($this->remarketing_snippets) && $this->remarketing_snippets){
|
readme.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
=== Conversios.io - Google Analytics (GA4) and Google Shopping plugin for WooCommerce ===
|
2 |
-
Contributors:
|
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:
|
8 |
Requires at least: 3.5.0
|
9 |
Tested up to: 6.0
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 4.7.
|
12 |
-
Version: 4.7.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -405,9 +405,11 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
405 |
|
406 |
|
407 |
== Changelog ==
|
|
|
|
|
408 |
|
409 |
= 4.7.4 - 01/06/2022 =
|
410 |
-
* Code optimization in terms of
|
411 |
|
412 |
= 4.7.3 - 12/05/2022 =
|
413 |
* Update: Google Ads API Libraries
|
@@ -415,11 +417,11 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
415 |
* Fix: GA4 tracking - Checkout steps issue has been fixed.
|
416 |
|
417 |
= 4.7.2 - 21/04/2022 =
|
418 |
-
* Tweak: Now, Customer can choose the tracking trigger for addTocart (product detail), checkout steps and
|
419 |
* New: (PRO) Now compatible with WooCommerce custom attribute mapping for the brands (product) in the product sync.
|
420 |
|
421 |
= 4.7.1 - 13/04/2022 =
|
422 |
-
* New: (PRO) Product sync
|
423 |
|
424 |
= 4.7.0 - 05/04/2022 =
|
425 |
* New: Facebook Pixel conversion tracking for major ecommerce events like Page view, Add to Cart, Initiate checkout, Purchase, View Content and Search events.
|
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.7.5
|
12 |
+
Version: 4.7.5
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
405 |
|
406 |
|
407 |
== Changelog ==
|
408 |
+
= 4.7.5 - 07/06/2022 =
|
409 |
+
* NEW: (PRO) Add the New features "Content Grouping" for Google Analytics tracking & "Google Optimize tracking".
|
410 |
|
411 |
= 4.7.4 - 01/06/2022 =
|
412 |
+
* Code optimization in terms of backend load time, onboarding spin wheel load time.
|
413 |
|
414 |
= 4.7.3 - 12/05/2022 =
|
415 |
* Update: Google Ads API Libraries
|
417 |
* Fix: GA4 tracking - Checkout steps issue has been fixed.
|
418 |
|
419 |
= 4.7.2 - 21/04/2022 =
|
420 |
+
* Tweak: Now, Customer can choose the tracking trigger for addTocart (product detail), checkout steps and thankyou page.
|
421 |
* New: (PRO) Now compatible with WooCommerce custom attribute mapping for the brands (product) in the product sync.
|
422 |
|
423 |
= 4.7.1 - 13/04/2022 =
|
424 |
+
* New: (PRO) Product sync feature now compatible with various Brand plugins like Perfect Brands for WooCommerce, YITH WooCommerce Brands️ and WooCommerce Brands.
|
425 |
|
426 |
= 4.7.0 - 05/04/2022 =
|
427 |
* New: Facebook Pixel conversion tracking for major ecommerce events like Page view, Add to Cart, Initiate checkout, Purchase, View Content and Search events.
|