Version Description
- 17/10/2017 =
- Compatibility with Woocommerce 3.2
- Minor Bug Fixes & Optimization.
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.2.0
includes/aga_woo_1000_200.png
ADDED
Binary file
|
includes/class-wc-enhanced-ecommerce-google-analytics-integration.php
CHANGED
@@ -18,7 +18,7 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
18 |
* @return void
|
19 |
*/
|
20 |
//set plugin version
|
21 |
-
public $tvc_eeVer = '1.
|
22 |
public function __construct() {
|
23 |
|
24 |
//Set Global Variables
|
@@ -28,7 +28,7 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
28 |
//define plugin ID
|
29 |
$this->id = "enhanced_ecommerce_google_analytics";
|
30 |
$this->method_title = __("Enhanced Ecommerce Google Analytics", "enhanced-e-commerce-for-woocommerce-store");
|
31 |
-
$this->method_description = __("Enhanced Ecommerce is a new feature of Universal Analytics that generates detailed statistics about the users journey from product page to thank you page on your e-store. <br/><a href='http://www.tatvic.com/blog/enhanced-ecommerce/' target='_blank'>Know more about Enhanced Ecommerce.</a><br/><br/><b>Quick Tip:</b> We recently launched an Advanced Google Analytics Plugin for WooCommerce! The plugin offers tracking of 9 Reports of Enhanced Ecommerce, User ID Tracking, 15+ Custom Dimenensions & Metrics, Content Grouping & much more. <a href='https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552' target='_blank'>Learn More</a>", "woocommerce");
|
32 |
|
33 |
//session for product position count
|
34 |
//session_start removed bcoz it gives warning
|
@@ -39,7 +39,8 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
39 |
//load all the settings
|
40 |
$this->init_settings();
|
41 |
|
42 |
-
// Define user set variables -- Always use short names
|
|
|
43 |
$this->ga_id = $this->get_option("ga_id");
|
44 |
$this->ga_Dname = $this->get_option("ga_Dname");
|
45 |
$this->ga_LC = get_woocommerce_currency(); //Local Currency yuppi! Got from Back end
|
@@ -155,10 +156,10 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
155 |
} }
|
156 |
});
|
157 |
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
}
|
163 |
}
|
164 |
|
@@ -232,12 +233,9 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
232 |
' . $ga_display_feature_code . '
|
233 |
|
234 |
ga("send", "pageview");';
|
235 |
-
|
236 |
-
//include this on all pages except order confirmation page.
|
237 |
-
if (!is_order_received_page()) {
|
238 |
echo "<script>" . $code . "</script>";
|
239 |
}
|
240 |
-
}
|
241 |
|
242 |
/**
|
243 |
* Initialise Settings Form Fields
|
@@ -357,23 +355,6 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
357 |
$ga_display_feature_code = "";
|
358 |
}
|
359 |
|
360 |
-
//add Pageview on order page if user checked Add Standard UA code
|
361 |
-
if ($this->ga_ST) {
|
362 |
-
$ga_pageview = 'ga("send", "pageview");';
|
363 |
-
} else {
|
364 |
-
$ga_pageview = "";
|
365 |
-
}
|
366 |
-
$code = '(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){
|
367 |
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
368 |
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
369 |
-
})(window,document,"script","//www.google-analytics.com/analytics.js","ga");
|
370 |
-
|
371 |
-
ga("create", "' . esc_js($tracking_id) . '", "' . $set_domain_name . '");
|
372 |
-
' . $ga_display_feature_code . '
|
373 |
-
ga("require", "ec", "ec.js");
|
374 |
-
' . $ga_pageview . '
|
375 |
-
';
|
376 |
-
|
377 |
// Order items
|
378 |
if ($order->get_items()) {
|
379 |
foreach ($order->get_items() as $item) {
|
@@ -442,7 +423,8 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
442 |
//make json for trans data on order page
|
443 |
$this->wc_version_compare("tvc_td=" . json_encode($orderpage_trans_Array) . ";");
|
444 |
|
445 |
-
$code
|
|
|
446 |
//set local currencies
|
447 |
ga("set", "&cu", tvc_lc);
|
448 |
for(var t_item in tvc_oc){
|
18 |
* @return void
|
19 |
*/
|
20 |
//set plugin version
|
21 |
+
public $tvc_eeVer = '1.2.0';
|
22 |
public function __construct() {
|
23 |
|
24 |
//Set Global Variables
|
28 |
//define plugin ID
|
29 |
$this->id = "enhanced_ecommerce_google_analytics";
|
30 |
$this->method_title = __("Enhanced Ecommerce Google Analytics", "enhanced-e-commerce-for-woocommerce-store");
|
31 |
+
$this->method_description = __("Enhanced Ecommerce is a new feature of Universal Analytics that generates detailed statistics about the users journey from product page to thank you page on your e-store. <br/><a href='http://www.tatvic.com/blog/enhanced-ecommerce/' target='_blank'>Know more about Enhanced Ecommerce.</a><br/><br/><b>Quick Tip:</b> We recently launched an Advanced Google Analytics Plugin for WooCommerce! The plugin offers tracking of 9 Reports of Enhanced Ecommerce, User ID Tracking, 15+ Custom Dimenensions & Metrics, Content Grouping & much more. <a href='https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552?ref=tatvic' target='_blank'>Learn More</a>", "woocommerce");
|
32 |
|
33 |
//session for product position count
|
34 |
//session_start removed bcoz it gives warning
|
39 |
//load all the settings
|
40 |
$this->init_settings();
|
41 |
|
42 |
+
// Define user set variables -- Always use short names
|
43 |
+
$this->tvc_aga = $this->get_option("tvc_aga");
|
44 |
$this->ga_id = $this->get_option("ga_id");
|
45 |
$this->ga_Dname = $this->get_option("ga_Dname");
|
46 |
$this->ga_LC = get_woocommerce_currency(); //Local Currency yuppi! Got from Back end
|
156 |
} }
|
157 |
});
|
158 |
|
159 |
+
//Pugin Promotion
|
160 |
+
jQuery("h1.screen-reader-text").before("<a href=https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552?ref=tatvic target=_blank><img src='.plugins_url( '/aga_woo_1000_200.png' , __FILE__ ).' title=Actionable Google Analytics Plugin by Tatvic alt=Actionable Google Analytics Plugin by Tatvic></a>");
|
161 |
+
jQuery("form#mainform").after("<a href=https://www.tatvic.com/contact/?utm_source=woocommerce_ee_plugin&utm_medium=wordpress_admin&utm_campaign=plugin_promotion target=_blank><img src='.plugins_url( '/owox_banner_700_150.png' , __FILE__ ).' title=Owox Banner Ad alt=Owox Banner Ad></a>");
|
162 |
+
</script>';
|
163 |
}
|
164 |
}
|
165 |
|
233 |
' . $ga_display_feature_code . '
|
234 |
|
235 |
ga("send", "pageview");';
|
236 |
+
|
|
|
|
|
237 |
echo "<script>" . $code . "</script>";
|
238 |
}
|
|
|
239 |
|
240 |
/**
|
241 |
* Initialise Settings Form Fields
|
355 |
$ga_display_feature_code = "";
|
356 |
}
|
357 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
// Order items
|
359 |
if ($order->get_items()) {
|
360 |
foreach ($order->get_items() as $item) {
|
423 |
//make json for trans data on order page
|
424 |
$this->wc_version_compare("tvc_td=" . json_encode($orderpage_trans_Array) . ";");
|
425 |
|
426 |
+
$code ='
|
427 |
+
ga("require", "ec", "ec.js");
|
428 |
//set local currencies
|
429 |
ga("set", "&cu", tvc_lc);
|
430 |
for(var t_item in tvc_oc){
|
readme.txt
CHANGED
@@ -7,8 +7,8 @@ Author URI: http://www.tatvic.com/
|
|
7 |
Author: Tatvic
|
8 |
Requires at least: 3.6
|
9 |
Tested up to: 4.8
|
10 |
-
Stable tag: 1.
|
11 |
-
Version: 1.
|
12 |
License: GPLv3
|
13 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
|
@@ -111,9 +111,9 @@ Reason :
|
|
111 |
|
112 |
You can Find all The Enhanced Ecommerce Reports in your Analytics Account under Conversions --> Ecommerce.
|
113 |
|
114 |
-
= Products with
|
115 |
|
116 |
-
Currently our plugin does not support products with
|
117 |
|
118 |
= I have noticed that some transactions are missing in my GA account, compared to my Woocmmerce backend (Orders) =
|
119 |
|
@@ -239,4 +239,8 @@ Important Note: When you update the plugin, please save your settings again.
|
|
239 |
* Minor Optimization on Order-Received Page.
|
240 |
|
241 |
= 1.1.2 - 04/09/2017 =
|
242 |
-
* Quick Fix of Minor Bugs.
|
|
|
|
|
|
|
|
7 |
Author: Tatvic
|
8 |
Requires at least: 3.6
|
9 |
Tested up to: 4.8
|
10 |
+
Stable tag: 1.2.0
|
11 |
+
Version: 1.2.0
|
12 |
License: GPLv3
|
13 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
|
111 |
|
112 |
You can Find all The Enhanced Ecommerce Reports in your Analytics Account under Conversions --> Ecommerce.
|
113 |
|
114 |
+
= Products with variant not getting recorded in GA =
|
115 |
|
116 |
+
Currently our plugin does not support products with variant & hence you may not see their transaction data in GA. This feature is only available with the <a href="https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552?ref=tatvic" target="_blank">premium version</a> of our plugin.
|
117 |
|
118 |
= I have noticed that some transactions are missing in my GA account, compared to my Woocmmerce backend (Orders) =
|
119 |
|
239 |
* Minor Optimization on Order-Received Page.
|
240 |
|
241 |
= 1.1.2 - 04/09/2017 =
|
242 |
+
* Quick Fix of Minor Bugs.
|
243 |
+
|
244 |
+
= 1.2.0 - 17/10/2017 =
|
245 |
+
* Compatibility with Woocommerce 3.2
|
246 |
+
* Minor Bug Fixes & Optimization.
|
woocommerce-enhanced-ecommerce-google-analytics-integration.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/* Copyright
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -21,7 +21,7 @@
|
|
21 |
Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
|
22 |
Author: Tatvic
|
23 |
Author URI: http://www.tatvic.com
|
24 |
-
Version: 1.
|
25 |
*/
|
26 |
if (!defined('ABSPATH')) {
|
27 |
exit; // Exit if accessed directly
|
@@ -54,6 +54,7 @@ function tvc_ee_plugin_action_links($links) {
|
|
54 |
$links[] = '<a href="' . get_admin_url(null, $setting_url) . '">Settings</a>';
|
55 |
$links[] = '<a href="https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/faq/" target="_blank">FAQ</a>';
|
56 |
$links[] = '<a href="http://plugins.tatvic.com/downloads/EE-Woocommerce-Plugin-Documentation.pdf" target="_blank">Documentation</a>';
|
|
|
57 |
return $links;
|
58 |
}
|
59 |
?>
|
1 |
<?php
|
2 |
|
3 |
+
/* Copyright 2017 Tatvic
|
4 |
|
5 |
This program is free software; you can redistribute it and/or modify
|
6 |
it under the terms of the GNU General Public License, version 2, as
|
21 |
Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
|
22 |
Author: Tatvic
|
23 |
Author URI: http://www.tatvic.com
|
24 |
+
Version: 1.2.0
|
25 |
*/
|
26 |
if (!defined('ABSPATH')) {
|
27 |
exit; // Exit if accessed directly
|
54 |
$links[] = '<a href="' . get_admin_url(null, $setting_url) . '">Settings</a>';
|
55 |
$links[] = '<a href="https://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/faq/" target="_blank">FAQ</a>';
|
56 |
$links[] = '<a href="http://plugins.tatvic.com/downloads/EE-Woocommerce-Plugin-Documentation.pdf" target="_blank">Documentation</a>';
|
57 |
+
$links[] = '<b><a href="https://codecanyon.net/item/actionable-google-analytics-for-woocommerce/9899552?ref=tatvic" target="_blank">Upgrade to Premium</a></b>';
|
58 |
return $links;
|
59 |
}
|
60 |
?>
|