Version Description
- 04/06/2018 =
- Minor Bug Fixes
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
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 = '2.0.
|
22 |
public function __construct() {
|
23 |
|
24 |
//Set Global Variables
|
@@ -112,7 +112,10 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
112 |
't_df' => $this->ga_DF,
|
113 |
't_gUser'=>$this->ga_gUser,
|
114 |
't_UAen'=>$this->ga_ST,
|
115 |
-
't_thr' => $this->ga_imTh,
|
|
|
|
|
|
|
116 |
)
|
117 |
);
|
118 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
@@ -220,9 +223,9 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
220 |
}
|
221 |
// IP Anonymization
|
222 |
if ($this->ga_IPA) {
|
223 |
-
$ga_ip_anonymization = '
|
224 |
} else {
|
225 |
-
$ga_ip_anonymization =
|
226 |
}
|
227 |
if($this->ga_OPTOUT) {
|
228 |
echo '<script>
|
@@ -249,8 +252,7 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
249 |
window.dataLayer = window.dataLayer || [];
|
250 |
function gtag(){dataLayer.push(arguments);}
|
251 |
gtag("js", new Date());
|
252 |
-
'.$ga_ip_anonymization.'
|
253 |
-
gtag("config", "'.esc_js($tracking_id).'",{"cookie_domain":"'.$set_domain_name.'"});
|
254 |
</script>
|
255 |
';
|
256 |
echo $code;
|
@@ -329,7 +331,7 @@ class WC_Enhanced_Ecommerce_Google_Analytics extends WC_Integration {
|
|
329 |
"label" => __("Enable Google Analytics Opt Out (Optional)", "woocommerce"),
|
330 |
"type" => "checkbox",
|
331 |
"checkboxgroup" => "",
|
332 |
-
"description" => sprintf(__("Use this feature to provide website visitors the ability to prevent their data from being used by Google Analytics As per the GDPR compliance.
|
333 |
"default" => get_option("ga_OPTOUT") ? get_option("ga_OPTOUT") : "no" // Backwards compat
|
334 |
),
|
335 |
"ga_PrivacyPolicy" => array(
|
18 |
* @return void
|
19 |
*/
|
20 |
//set plugin version
|
21 |
+
public $tvc_eeVer = '2.0.3';
|
22 |
public function __construct() {
|
23 |
|
24 |
//Set Global Variables
|
112 |
't_df' => $this->ga_DF,
|
113 |
't_gUser'=>$this->ga_gUser,
|
114 |
't_UAen'=>$this->ga_ST,
|
115 |
+
't_thr' => $this->ga_imTh,
|
116 |
+
't_IPA' => $this->ga_IPA,
|
117 |
+
't_OptOut' => $this->ga_OPTOUT,
|
118 |
+
't_PrivacyPolicy' => $this->ga_PrivacyPolicy,
|
119 |
)
|
120 |
);
|
121 |
$this->wc_version_compare("tvc_smd=" . json_encode($tvc_sMetaData) . ";");
|
223 |
}
|
224 |
// IP Anonymization
|
225 |
if ($this->ga_IPA) {
|
226 |
+
$ga_ip_anonymization = '"anonymize_ip":true,';
|
227 |
} else {
|
228 |
+
$ga_ip_anonymization ="";
|
229 |
}
|
230 |
if($this->ga_OPTOUT) {
|
231 |
echo '<script>
|
252 |
window.dataLayer = window.dataLayer || [];
|
253 |
function gtag(){dataLayer.push(arguments);}
|
254 |
gtag("js", new Date());
|
255 |
+
gtag("config", "'.esc_js($tracking_id).'",{'.$ga_ip_anonymization.' "cookie_domain":"'.$set_domain_name.'"});
|
|
|
256 |
</script>
|
257 |
';
|
258 |
echo $code;
|
331 |
"label" => __("Enable Google Analytics Opt Out (Optional)", "woocommerce"),
|
332 |
"type" => "checkbox",
|
333 |
"checkboxgroup" => "",
|
334 |
+
"description" => sprintf(__("Use this feature to provide website visitors the ability to prevent their data from being used by Google Analytics As per the GDPR compliance.Go through the <a href='http://plugins.tatvic.com/downloads/EE-Woocommerce-Plugin-Documentation.pdf' target='_blank' >documentation</a> to check the setup", "woocommerce")),
|
335 |
"default" => get_option("ga_OPTOUT") ? get_option("ga_OPTOUT") : "no" // Backwards compat
|
336 |
),
|
337 |
"ga_PrivacyPolicy" => array(
|
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.9
|
10 |
-
Stable tag: 2.0.
|
11 |
-
Version: 2.0.
|
12 |
License: GPLv3
|
13 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
|
@@ -67,8 +67,6 @@ We have an Advanced Google Analytics Plugin for WooCommerce which includes track
|
|
67 |
2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory
|
68 |
3. Activate the plugin from the Plugins menu within the WordPress admin
|
69 |
4. Enter your Universal Analytics ID for the plugin to enable the tracking code
|
70 |
-
5. Enable the required features
|
71 |
-
5. Accept the Privacy Policy of the Plugin
|
72 |
|
73 |
== Screenshots ==
|
74 |
1. Enable Enhanced E-commerce for your profile/view. This is a profile / view level setting and can be accessed under Admin > View > E-commerce Settings. Also, add meaningful labels for your checkout steps. We recommend you to label as, Step 1 : Checkout View; Step 2 : Login; Step 3 : Proceed to payment;
|
@@ -292,10 +290,13 @@ Important Note: When you update the plugin, please save your settings again.
|
|
292 |
* gtag.js supported
|
293 |
* Minor Bug Fixes & Optimization.
|
294 |
|
295 |
-
|
296 |
* Minor Bug Fixes & Optimization.
|
297 |
|
298 |
= 2.0.2 - 23/05/2018 =
|
299 |
* IP Anonymization Feature
|
300 |
* Google Analytics Opt Out
|
301 |
-
* Update the Privacy Policy under GDPR Compliance
|
|
|
|
|
|
7 |
Author: Tatvic
|
8 |
Requires at least: 3.6
|
9 |
Tested up to: 4.9
|
10 |
+
Stable tag: 2.0.3
|
11 |
+
Version: 2.0.3
|
12 |
License: GPLv3
|
13 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
14 |
|
67 |
2. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory
|
68 |
3. Activate the plugin from the Plugins menu within the WordPress admin
|
69 |
4. Enter your Universal Analytics ID for the plugin to enable the tracking code
|
|
|
|
|
70 |
|
71 |
== Screenshots ==
|
72 |
1. Enable Enhanced E-commerce for your profile/view. This is a profile / view level setting and can be accessed under Admin > View > E-commerce Settings. Also, add meaningful labels for your checkout steps. We recommend you to label as, Step 1 : Checkout View; Step 2 : Login; Step 3 : Proceed to payment;
|
290 |
* gtag.js supported
|
291 |
* Minor Bug Fixes & Optimization.
|
292 |
|
293 |
+
= 2.0.1 - 24/04/2018 =
|
294 |
* Minor Bug Fixes & Optimization.
|
295 |
|
296 |
= 2.0.2 - 23/05/2018 =
|
297 |
* IP Anonymization Feature
|
298 |
* Google Analytics Opt Out
|
299 |
+
* Update the Privacy Policy under GDPR Compliance
|
300 |
+
|
301 |
+
= 2.0.3 - 04/06/2018 =
|
302 |
+
* Minor Bug Fixes
|
woocommerce-enhanced-ecommerce-google-analytics-integration.php
CHANGED
@@ -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: 2.0.
|
25 |
*/
|
26 |
if (!defined('ABSPATH')) {
|
27 |
exit; // Exit if accessed directly
|
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: 2.0.3
|
25 |
*/
|
26 |
if (!defined('ABSPATH')) {
|
27 |
exit; // Exit if accessed directly
|