Version Description
- 02/12/2019 =
- Compatibility with WooCommerce 3.8.0
- Compatibility with Wordpress 5.3
- Minor Bug Fixes
- Added 14 Days Free Trial of Actionable Google Analytics
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 2.3.0 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.3.0
- admin/class-enhanced-ecommerce-google-analytics-admin.php +5 -1
- admin/class-enhanced-ecommerce-google-analytics-settings.php +7 -0
- admin/css/enhanced-ecommerce-google-analytics-admin.css +31 -0
- admin/images/new-1.jpg +0 -0
- admin/images/new-2.gif +0 -0
- admin/images/new-img.gif +0 -0
- admin/images/new.gif +0 -0
- admin/js/enhanced-ecommerce-google-analytics-admin.js +10 -1
- admin/partials/about-plugin.php +7 -2
- admin/partials/enhanced-ecommerce-google-analytics-admin-display.php +3 -1
- admin/partials/general-fields.php +15 -8
- admin/partials/sidebar.php +3 -2
- enhanced-ecommerce-google-analytics.php +4 -3
- includes/class-enhanced-ecommerce-google-analytics.php +20 -1
- public/class-enhanced-ecommerce-google-analytics-public.php +3 -4
- readme.txt +13 -6
admin/class-enhanced-ecommerce-google-analytics-admin.php
CHANGED
@@ -73,6 +73,8 @@ class Enhanced_Ecommerce_Google_Analytics_Admin {
|
|
73 |
wp_enqueue_style('font_awesome');
|
74 |
wp_register_style('aga_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css');
|
75 |
wp_enqueue_style('aga_bootstrap');
|
|
|
|
|
76 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/enhanced-ecommerce-google-analytics-admin.css', array(), $this->version, 'all' );
|
77 |
}
|
78 |
|
@@ -91,9 +93,10 @@ class Enhanced_Ecommerce_Google_Analytics_Admin {
|
|
91 |
wp_enqueue_script('popper_bootstrap');
|
92 |
wp_register_script('aga_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js');
|
93 |
wp_enqueue_script('aga_bootstrap');
|
|
|
|
|
94 |
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/enhanced-ecommerce-google-analytics-admin.js', array( 'jquery' ), $this->version, false );
|
95 |
}
|
96 |
-
|
97 |
}
|
98 |
|
99 |
/**
|
@@ -147,4 +150,5 @@ class Enhanced_Ecommerce_Google_Analytics_Admin {
|
|
147 |
public function about_plugin() {
|
148 |
require_once( 'partials/about-plugin.php');
|
149 |
}
|
|
|
150 |
}
|
73 |
wp_enqueue_style('font_awesome');
|
74 |
wp_register_style('aga_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css');
|
75 |
wp_enqueue_style('aga_bootstrap');
|
76 |
+
wp_register_style('aga_confirm', '//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css');
|
77 |
+
wp_enqueue_style('aga_confirm');
|
78 |
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/enhanced-ecommerce-google-analytics-admin.css', array(), $this->version, 'all' );
|
79 |
}
|
80 |
|
93 |
wp_enqueue_script('popper_bootstrap');
|
94 |
wp_register_script('aga_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js');
|
95 |
wp_enqueue_script('aga_bootstrap');
|
96 |
+
wp_register_script('aga_confirm_js', '//cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js');
|
97 |
+
wp_enqueue_script('aga_confirm_js');
|
98 |
wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/enhanced-ecommerce-google-analytics-admin.js', array( 'jquery' ), $this->version, false );
|
99 |
}
|
|
|
100 |
}
|
101 |
|
102 |
/**
|
150 |
public function about_plugin() {
|
151 |
require_once( 'partials/about-plugin.php');
|
152 |
}
|
153 |
+
|
154 |
}
|
admin/class-enhanced-ecommerce-google-analytics-settings.php
CHANGED
@@ -70,4 +70,11 @@ class Enhanced_Ecommerce_Google_Settings {
|
|
70 |
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
|
71 |
|
72 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
70 |
printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), esc_html( $message ) );
|
71 |
|
72 |
}
|
73 |
+
public function show_message(){
|
74 |
+
echo '
|
75 |
+
<div class="notice notice-warning is-dismissible">
|
76 |
+
<p>Get all the 9 GA - Enhanced Ecommerce reports, 20+ custom dimensions and metrics, google ads conversion tracking, FB pixel tracking, Google Optimize integration and many more advanced features in the Premium Version. <a class="download" target="_blank" href="http://plugins.tatvic.com/downloads/actionable-google-analytics-free-trial.zip"><strong>Get your free trial for 14 days now.</strong></a></p>
|
77 |
+
</div>
|
78 |
+
';
|
79 |
+
}
|
80 |
}
|
admin/css/enhanced-ecommerce-google-analytics-admin.css
CHANGED
@@ -43,6 +43,9 @@ input[type=checkbox]{
|
|
43 |
-ms-transition: all 1.5s ease;
|
44 |
transition: all 1.5s ease;
|
45 |
}
|
|
|
|
|
|
|
46 |
input[type=checkbox]:checked::before {
|
47 |
height:16px;
|
48 |
width:16px;
|
@@ -68,4 +71,32 @@ h5{
|
|
68 |
margin-left: 6% !important;
|
69 |
width:auto;
|
70 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
71 |
}
|
43 |
-ms-transition: all 1.5s ease;
|
44 |
transition: all 1.5s ease;
|
45 |
}
|
46 |
+
.align-middle{
|
47 |
+
font-size: 15px;
|
48 |
+
}
|
49 |
input[type=checkbox]:checked::before {
|
50 |
height:16px;
|
51 |
width:16px;
|
71 |
margin-left: 6% !important;
|
72 |
width:auto;
|
73 |
}
|
74 |
+
}
|
75 |
+
.try-btn{
|
76 |
+
width: auto;
|
77 |
+
border: black;
|
78 |
+
text-align: center;
|
79 |
+
padding: 8px 10px 10px 10px;
|
80 |
+
font-size: 18px;
|
81 |
+
background-color: #00a32a;
|
82 |
+
float: right;
|
83 |
+
top: 60px;
|
84 |
+
height: 38px;
|
85 |
+
color: antiquewhite;
|
86 |
+
font-weight: bold;
|
87 |
+
border-radius: 4px;
|
88 |
+
-moz-box-shadow: 3px 3px 5px 6px #ccc;
|
89 |
+
-webkit-box-shadow: 3px 3px 5px 6px #ccc;
|
90 |
+
box-shadow: 0px 0px 7px 7px #ccc;
|
91 |
+
}
|
92 |
+
.top-btn{
|
93 |
+
float: right;
|
94 |
+
}
|
95 |
+
.new-img-blink{
|
96 |
+
width: 40px;
|
97 |
+
height: 25px;
|
98 |
+
}
|
99 |
+
.new-img-blink-side{
|
100 |
+
width: 40px;
|
101 |
+
height: 20px;
|
102 |
}
|
admin/images/new-1.jpg
ADDED
Binary file
|
admin/images/new-2.gif
ADDED
Binary file
|
admin/images/new-img.gif
ADDED
Binary file
|
admin/images/new.gif
ADDED
Binary file
|
admin/js/enhanced-ecommerce-google-analytics-admin.js
CHANGED
@@ -29,5 +29,14 @@
|
|
29 |
* practising this, we should strive to set a better example in our own work.
|
30 |
*/
|
31 |
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
})( jQuery );
|
29 |
* practising this, we should strive to set a better example in our own work.
|
30 |
*/
|
31 |
|
32 |
+
jQuery(document).ready(function(){
|
33 |
+
jQuery('.download').click(function(){
|
34 |
+
jQuery.confirm({
|
35 |
+
theme : 'supervan',
|
36 |
+
type: 'red',
|
37 |
+
title: 'Note !',
|
38 |
+
content: 'Deactivate the Enhanced Ecommerce Google analytics (Tatvic EE Plugin) before activating the free trial.',
|
39 |
+
});
|
40 |
+
});
|
41 |
+
});
|
42 |
})( jQuery );
|
admin/partials/about-plugin.php
CHANGED
@@ -1,3 +1,7 @@
|
|
|
|
|
|
|
|
|
|
1 |
<style>
|
2 |
td{
|
3 |
text-align: center !important;
|
@@ -16,8 +20,9 @@
|
|
16 |
<div class="row" style="margin-left:-11%; !important;">
|
17 |
<div class= "col col-9">
|
18 |
<div class="card mw-100" style="padding:0;">
|
|
|
19 |
<div class="card-header">
|
20 |
-
<h5>Feature difference between <span style="font-weight: 800;">Free & Premium</span> Plugin</h5>
|
21 |
</div>
|
22 |
<div class="card-body">
|
23 |
<div class="row">
|
@@ -144,7 +149,7 @@
|
|
144 |
<tfoot class="thead-inverse">
|
145 |
<tr>
|
146 |
<th class="w-25"></th>
|
147 |
-
<th class=""></th>
|
148 |
<th class=""><a href="https://1.envato.market/Yvn3R" target="_blank"><button class="btn btn-primary"><strong>Buy Premium Plugin</strong></button></a></th>
|
149 |
</tr>
|
150 |
</tfoot>
|
1 |
+
<?php
|
2 |
+
$message = new Enhanced_Ecommerce_Google_Settings();
|
3 |
+
?>
|
4 |
+
|
5 |
<style>
|
6 |
td{
|
7 |
text-align: center !important;
|
20 |
<div class="row" style="margin-left:-11%; !important;">
|
21 |
<div class= "col col-9">
|
22 |
<div class="card mw-100" style="padding:0;">
|
23 |
+
<?php $message->show_message();?>
|
24 |
<div class="card-header">
|
25 |
+
<h5>Feature difference between <span style="font-weight: 800;">Free & Premium</span> Plugin<a href="http://plugins.tatvic.com/downloads/actionable-google-analytics-free-trial.zip"><button name="download" class="top-btn btn btn-primary download"><strong>14 Days Free Trial ! </strong><img class="new-img-blink" src='<?php echo plugins_url('../images/new-2.gif', __FILE__ ) ?>' /></button></a></h5>
|
26 |
</div>
|
27 |
<div class="card-body">
|
28 |
<div class="row">
|
149 |
<tfoot class="thead-inverse">
|
150 |
<tr>
|
151 |
<th class="w-25"></th>
|
152 |
+
<th class=""><a href="http://plugins.tatvic.com/downloads/actionable-google-analytics-free-trial.zip"><button class="btn btn-primary download"><strong>14 Days Free Trial ! </strong><img class="new-img-blink" src='<?php echo plugins_url('../images/new-2.gif', __FILE__ ) ?>' /></button></a></th>
|
153 |
<th class=""><a href="https://1.envato.market/Yvn3R" target="_blank"><button class="btn btn-primary"><strong>Buy Premium Plugin</strong></button></a></th>
|
154 |
</tr>
|
155 |
</tfoot>
|
admin/partials/enhanced-ecommerce-google-analytics-admin-display.php
CHANGED
@@ -32,6 +32,8 @@ else{
|
|
32 |
if(empty($_GET['tab'])){
|
33 |
$general_class_active = "active";
|
34 |
}
|
|
|
|
|
35 |
?>
|
36 |
<header class='background-color:#E8E8E8;height:500px;width:auto;margin-top:100px;margin-left:20px;'>
|
37 |
<img class ="banner" src='<?php echo plugins_url('../images/banner.png', __FILE__ ) ?>' style="margin-left:10px;">
|
@@ -40,5 +42,5 @@ if(empty($_GET['tab'])){
|
|
40 |
<li class="nav-item">
|
41 |
<a href="<?php echo $site_url.'general_settings'; ?>" class="border-left aga-tab nav-link <?php echo $general_class_active; ?>">General Setting</a>
|
42 |
</li>
|
43 |
-
<li class="nav-item"><a href="<?php echo $site_url.'about_plugin'; ?>" class="border-left aga-tab nav-link <?php echo $advanced_class_active; ?>">Premium
|
44 |
</ul>
|
32 |
if(empty($_GET['tab'])){
|
33 |
$general_class_active = "active";
|
34 |
}
|
35 |
+
|
36 |
+
|
37 |
?>
|
38 |
<header class='background-color:#E8E8E8;height:500px;width:auto;margin-top:100px;margin-left:20px;'>
|
39 |
<img class ="banner" src='<?php echo plugins_url('../images/banner.png', __FILE__ ) ?>' style="margin-left:10px;">
|
42 |
<li class="nav-item">
|
43 |
<a href="<?php echo $site_url.'general_settings'; ?>" class="border-left aga-tab nav-link <?php echo $general_class_active; ?>">General Setting</a>
|
44 |
</li>
|
45 |
+
<li class="nav-item"><a href="<?php echo $site_url.'about_plugin'; ?>" class="border-left aga-tab nav-link <?php echo $advanced_class_active; ?>">Premium - Free Trial <img class="new-img-blink" src='<?php echo plugins_url('../images/new-2.gif', __FILE__ ) ?>' /></a></li>
|
46 |
</ul>
|
admin/partials/general-fields.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
if(isset($_POST['ee_submit_plugin'])){
|
3 |
Enhanced_Ecommerce_Google_Settings::add_update_settings('ee_options');
|
4 |
}
|
@@ -8,6 +9,7 @@ $data = unserialize(get_option('ee_options'));
|
|
8 |
<div class="row" style="margin-left:-11%; !important;">
|
9 |
<div class= "col col-9" >
|
10 |
<div class="card mw-100" style="padding:0px;">
|
|
|
11 |
<div class="card-header">
|
12 |
<h5>Enhanced Ecommerce Google Analytics</h5>
|
13 |
</div>
|
@@ -15,7 +17,6 @@ $data = unserialize(get_option('ee_options'));
|
|
15 |
<form id="ee_plugin_form" method="post" action="" enctype="multipart/form-data" >
|
16 |
<table class="table table-bordered">
|
17 |
<tbody>
|
18 |
-
|
19 |
<tr>
|
20 |
<td>
|
21 |
<label class="align-middle" for="woocommerce_ee_google_analytics_ga_id">Google Analytics ID</label>
|
@@ -34,19 +35,22 @@ $data = unserialize(get_option('ee_options'));
|
|
34 |
<?php $ga_ST = !empty($data['ga_ST'])? 'checked' : ''; ?>
|
35 |
<input type="checkbox" name="ga_ST" id="ga_ST" <?php echo $ga_ST; ?> >
|
36 |
Add Global Site Tracking Code 'gtag.js'
|
37 |
-
<
|
|
|
38 |
</label><br/>
|
39 |
<label class = "align-middle" for="ga_enhance_ecommerce">
|
40 |
<?php $ga_eeT = !empty($data['ga_eeT'])? 'checked' : ''; ?>
|
41 |
<input type="checkbox" name="ga_eeT" id="ga_eeT" <?php echo $ga_eeT; ?> >
|
42 |
Add Enhanced Ecommerce Tracking Code
|
43 |
-
<
|
|
|
44 |
</label><br/>
|
45 |
<label class = "align-middle" for="ga_login_step">
|
46 |
<?php $ga_gUser = !empty($data['ga_gUser'])? 'checked' : ''; ?>
|
47 |
<input type="checkbox" name="ga_gUser" id="ga_gUser" <?php echo $ga_gUser; ?> >
|
48 |
Add Code to Track the Login Step of Guest Users (Optional)
|
49 |
-
<
|
|
|
50 |
</label><br/>
|
51 |
</td>
|
52 |
</tr>
|
@@ -56,8 +60,9 @@ $data = unserialize(get_option('ee_options'));
|
|
56 |
</td>
|
57 |
<td>
|
58 |
<?php $ga_Impr = !empty($data['ga_Impr'])? $data['ga_Impr'] : 6; ?>
|
59 |
-
<input type="number" min="1" id="ga_Impr" name = "ga_Impr" value = "<?php echo $ga_Impr; ?>"
|
60 |
-
<
|
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<tr>
|
@@ -69,7 +74,8 @@ $data = unserialize(get_option('ee_options'));
|
|
69 |
<?php $ga_IPA = !empty($data['ga_IPA'])? 'checked' : ''; ?>
|
70 |
<input class="" type="checkbox" name="ga_IPA" id="ga_IPA" <?php echo $ga_IPA; ?>>
|
71 |
Enable I.P. Anonymization
|
72 |
-
<
|
|
|
73 |
</label>
|
74 |
</td>
|
75 |
</tr>
|
@@ -82,7 +88,8 @@ $data = unserialize(get_option('ee_options'));
|
|
82 |
<?php $ga_OPTOUT = !empty($data['ga_OPTOUT'])? 'checked' : ''; ?>
|
83 |
<input class="" type="checkbox" name="ga_OPTOUT" id="ga_OPTOUT" <?php echo $ga_OPTOUT; ?>>
|
84 |
Enable Google Analytics Opt Out (Optional)
|
85 |
-
<
|
|
|
86 |
</label>
|
87 |
</td>
|
88 |
</tr>
|
1 |
<?php
|
2 |
+
$message = new Enhanced_Ecommerce_Google_Settings();
|
3 |
if(isset($_POST['ee_submit_plugin'])){
|
4 |
Enhanced_Ecommerce_Google_Settings::add_update_settings('ee_options');
|
5 |
}
|
9 |
<div class="row" style="margin-left:-11%; !important;">
|
10 |
<div class= "col col-9" >
|
11 |
<div class="card mw-100" style="padding:0px;">
|
12 |
+
<?php $message->show_message();?>
|
13 |
<div class="card-header">
|
14 |
<h5>Enhanced Ecommerce Google Analytics</h5>
|
15 |
</div>
|
17 |
<form id="ee_plugin_form" method="post" action="" enctype="multipart/form-data" >
|
18 |
<table class="table table-bordered">
|
19 |
<tbody>
|
|
|
20 |
<tr>
|
21 |
<td>
|
22 |
<label class="align-middle" for="woocommerce_ee_google_analytics_ga_id">Google Analytics ID</label>
|
35 |
<?php $ga_ST = !empty($data['ga_ST'])? 'checked' : ''; ?>
|
36 |
<input type="checkbox" name="ga_ST" id="ga_ST" <?php echo $ga_ST; ?> >
|
37 |
Add Global Site Tracking Code 'gtag.js'
|
38 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="This feature adds new gtag.js tracking code to your store. You don't need to enable this if gtag.js is implemented via any third party analytics plugin."></i>
|
39 |
+
<!--<p class="description">This feature adds new gtag.js tracking code to your store. You don't need to enable this if gtag.js is implemented via any third party analytics plugin.</p>-->
|
40 |
</label><br/>
|
41 |
<label class = "align-middle" for="ga_enhance_ecommerce">
|
42 |
<?php $ga_eeT = !empty($data['ga_eeT'])? 'checked' : ''; ?>
|
43 |
<input type="checkbox" name="ga_eeT" id="ga_eeT" <?php echo $ga_eeT; ?> >
|
44 |
Add Enhanced Ecommerce Tracking Code
|
45 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="This feature adds Enhanced Ecommerce Tracking Code to your Store"></i>
|
46 |
+
<!--<p class="description">This feature adds Enhanced Ecommerce Tracking Code to your Store</p>-->
|
47 |
</label><br/>
|
48 |
<label class = "align-middle" for="ga_login_step">
|
49 |
<?php $ga_gUser = !empty($data['ga_gUser'])? 'checked' : ''; ?>
|
50 |
<input type="checkbox" name="ga_gUser" id="ga_gUser" <?php echo $ga_gUser; ?> >
|
51 |
Add Code to Track the Login Step of Guest Users (Optional)
|
52 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="If you have Guest Check out enable, we recommend you to add this code"></i>
|
53 |
+
<!--<p class="description">If you have Guest Check out enable, we recommend you to add this code</p>-->
|
54 |
</label><br/>
|
55 |
</td>
|
56 |
</tr>
|
60 |
</td>
|
61 |
<td>
|
62 |
<?php $ga_Impr = !empty($data['ga_Impr'])? $data['ga_Impr'] : 6; ?>
|
63 |
+
<input type="number" min="1" id="ga_Impr" name = "ga_Impr" value = "<?php echo $ga_Impr; ?>">
|
64 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="This feature sets Impression threshold for category page. It sends hit after these many numbers of products impressions."></i>
|
65 |
+
<p class="description"><br><b>Note : To avoid processing load on server we recommend upto 6 Impression Thresold.</b></p>
|
66 |
</td>
|
67 |
</tr>
|
68 |
<tr>
|
74 |
<?php $ga_IPA = !empty($data['ga_IPA'])? 'checked' : ''; ?>
|
75 |
<input class="" type="checkbox" name="ga_IPA" id="ga_IPA" <?php echo $ga_IPA; ?>>
|
76 |
Enable I.P. Anonymization
|
77 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="Use this feature to anonymize (or stop collecting) the I.P Address of your users in Google Analytics. Be in legal compliance by using I.P Anonymization which is important for EU countries As per the GDPR compliance"></i>
|
78 |
+
<!-- <p class="description">Use this feature to anonymize (or stop collecting) the I.P Address of your users in Google Analytics. Be in legal compliance by using I.P Anonymization which is important for EU countries As per the GDPR compliance</p>-->
|
79 |
</label>
|
80 |
</td>
|
81 |
</tr>
|
88 |
<?php $ga_OPTOUT = !empty($data['ga_OPTOUT'])? 'checked' : ''; ?>
|
89 |
<input class="" type="checkbox" name="ga_OPTOUT" id="ga_OPTOUT" <?php echo $ga_OPTOUT; ?>>
|
90 |
Enable Google Analytics Opt Out (Optional)
|
91 |
+
<i style="cursor: help;" class="fas fa-question-circle" title="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 documentation to check the setup"></i>
|
92 |
+
<!--<p class="description">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 documentation to check the setup</p>-->
|
93 |
</label>
|
94 |
</td>
|
95 |
</tr>
|
admin/partials/sidebar.php
CHANGED
@@ -29,8 +29,9 @@
|
|
29 |
</div>
|
30 |
<div class="card-body">
|
31 |
<ul>
|
32 |
-
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/woo.png', __FILE__ ) ?>' /> <a href="http://
|
33 |
-
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/
|
|
|
34 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/m1.png', __FILE__ ) ?>' /> <a href="https://1.envato.market/79Oky" target="_blank">Actionable Google Analytics for Magento</a></li>
|
35 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/m2.png', __FILE__ ) ?>' /> <a href="https://marketplace.magento.com/tatvic-actionablegoogleanalytics.html" target="_blank">Actionable Google Analytics for Magento2</a></li>
|
36 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/shopify_new.png', __FILE__ ) ?>' /> <a href="https://apps.shopify.com/google-universal-analytics-enhanced-ecommerce" target="_blank">Actionable Google Analytics for Shopify</a></li>
|
29 |
</div>
|
30 |
<div class="card-body">
|
31 |
<ul>
|
32 |
+
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/woo.png', __FILE__ ) ?>' /> <a class="download" href="http://plugins.tatvic.com/downloads/actionable-google-analytics-free-trial.zip" target="_blank">Get your free trial for 14 days now ! </a> <img class="new-img-blink-side" src='<?php echo plugins_url('../images/new-2.gif', __FILE__ ) ?>' /></li>
|
33 |
+
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/woo.png', __FILE__ ) ?>' /> <a href="http://1.envato.market/Yvn3R" target="_blank">Actionable Google Analytics for WooCommerce - Premium Version</a></li>
|
34 |
+
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/cotlw.png', __FILE__ ) ?>' /> <a href="https://wordpress.org/plugins/woo-chrome-one-tap-login/" target="_blank">Chrome One Tap Login for Woocommerce </a><img class="new-img-blink-side" src='<?php echo plugins_url('../images/new-2.gif', __FILE__ ) ?>' /></li>
|
35 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/m1.png', __FILE__ ) ?>' /> <a href="https://1.envato.market/79Oky" target="_blank">Actionable Google Analytics for Magento</a></li>
|
36 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/m2.png', __FILE__ ) ?>' /> <a href="https://marketplace.magento.com/tatvic-actionablegoogleanalytics.html" target="_blank">Actionable Google Analytics for Magento2</a></li>
|
37 |
<li style="padding-bottom:5px;"><img src='<?php echo plugins_url('../images/shopify_new.png', __FILE__ ) ?>' /> <a href="https://apps.shopify.com/google-universal-analytics-enhanced-ecommerce" target="_blank">Actionable Google Analytics for Shopify</a></li>
|
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
<?php
|
|
|
2 |
/**
|
3 |
* The plugin bootstrap file
|
4 |
*
|
@@ -15,7 +16,7 @@
|
|
15 |
* Plugin Name: Enhanced E-commerce for Woocommerce store
|
16 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
17 |
* Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
|
18 |
-
* Version: 2.
|
19 |
* Author: Tatvic
|
20 |
* Author URI: www.tatvic.com
|
21 |
* License: GPL-2.0+
|
@@ -23,7 +24,7 @@
|
|
23 |
* Text Domain: www.tatvic.com
|
24 |
* Domain Path: /languages
|
25 |
* WC requires at least: 1.4.1
|
26 |
-
* WC tested up to: 3.
|
27 |
*/
|
28 |
|
29 |
/**
|
@@ -38,7 +39,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
38 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
39 |
* Rename this for your plugin and update it as you release new versions.
|
40 |
*/
|
41 |
-
define( 'PLUGIN_NAME_VERSION', '2.
|
42 |
/**
|
43 |
* The code that runs during plugin activation.
|
44 |
* This action is documented in includes/class-enhanced-ecommerce-google-analytics-activator.php
|
1 |
<?php
|
2 |
+
|
3 |
/**
|
4 |
* The plugin bootstrap file
|
5 |
*
|
16 |
* Plugin Name: Enhanced E-commerce for Woocommerce store
|
17 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
18 |
* Description: Allows Enhanced E-commerce Google Analytics tracking code to be inserted into WooCommerce store pages.
|
19 |
+
* Version: 2.3.0
|
20 |
* Author: Tatvic
|
21 |
* Author URI: www.tatvic.com
|
22 |
* License: GPL-2.0+
|
24 |
* Text Domain: www.tatvic.com
|
25 |
* Domain Path: /languages
|
26 |
* WC requires at least: 1.4.1
|
27 |
+
* WC tested up to: 3.8.0
|
28 |
*/
|
29 |
|
30 |
/**
|
39 |
* Start at version 1.0.0 and use SemVer - https://semver.org
|
40 |
* Rename this for your plugin and update it as you release new versions.
|
41 |
*/
|
42 |
+
define( 'PLUGIN_NAME_VERSION', '2.3.0' );
|
43 |
/**
|
44 |
* The code that runs during plugin activation.
|
45 |
* This action is documented in includes/class-enhanced-ecommerce-google-analytics-activator.php
|
includes/class-enhanced-ecommerce-google-analytics.php
CHANGED
@@ -27,6 +27,10 @@
|
|
27 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/includes
|
28 |
* @author Chiranjiv Pathak <chiranjiv@tatvic.com>
|
29 |
*/
|
|
|
|
|
|
|
|
|
30 |
class Enhanced_Ecommerce_Google_Analytics {
|
31 |
|
32 |
/**
|
@@ -70,13 +74,14 @@ class Enhanced_Ecommerce_Google_Analytics {
|
|
70 |
if ( defined( 'PLUGIN_NAME_VERSION' ) ) {
|
71 |
$this->version = PLUGIN_NAME_VERSION;
|
72 |
} else {
|
73 |
-
$this->version = '2.
|
74 |
}
|
75 |
$this->plugin_name = 'enhanced-ecommerce-google-analytics';
|
76 |
$this->load_dependencies();
|
77 |
$this->set_locale();
|
78 |
$this->define_admin_hooks();
|
79 |
$this->define_public_hooks();
|
|
|
80 |
add_filter( 'plugin_action_links_' .plugin_basename( plugin_dir_path( __DIR__ ) . $this->plugin_name . '.php' ), array($this,'tvc_plugin_action_links'),10 );
|
81 |
}
|
82 |
|
@@ -227,6 +232,7 @@ class Enhanced_Ecommerce_Google_Analytics {
|
|
227 |
* @since 1.0.0
|
228 |
* @return Enhanced_Ecommerce_Google_Analytics_Loader Orchestrates the hooks of the plugin.
|
229 |
*/
|
|
|
230 |
public function get_loader() {
|
231 |
return $this->loader;
|
232 |
}
|
@@ -237,6 +243,7 @@ class Enhanced_Ecommerce_Google_Analytics {
|
|
237 |
* @since 1.0.0
|
238 |
* @return string The version number of the plugin.
|
239 |
*/
|
|
|
240 |
public function get_version() {
|
241 |
return $this->version;
|
242 |
}
|
@@ -249,4 +256,16 @@ class Enhanced_Ecommerce_Google_Analytics {
|
|
249 |
$links[] = '<a href="https://1.envato.market/Yvn3R" target="_blank"><b>Upgrade to Premium</b></a>';
|
250 |
return $links;
|
251 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
}
|
27 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/includes
|
28 |
* @author Chiranjiv Pathak <chiranjiv@tatvic.com>
|
29 |
*/
|
30 |
+
|
31 |
+
|
32 |
+
|
33 |
+
|
34 |
class Enhanced_Ecommerce_Google_Analytics {
|
35 |
|
36 |
/**
|
74 |
if ( defined( 'PLUGIN_NAME_VERSION' ) ) {
|
75 |
$this->version = PLUGIN_NAME_VERSION;
|
76 |
} else {
|
77 |
+
$this->version = '2.0';
|
78 |
}
|
79 |
$this->plugin_name = 'enhanced-ecommerce-google-analytics';
|
80 |
$this->load_dependencies();
|
81 |
$this->set_locale();
|
82 |
$this->define_admin_hooks();
|
83 |
$this->define_public_hooks();
|
84 |
+
$this->check_dependency();
|
85 |
add_filter( 'plugin_action_links_' .plugin_basename( plugin_dir_path( __DIR__ ) . $this->plugin_name . '.php' ), array($this,'tvc_plugin_action_links'),10 );
|
86 |
}
|
87 |
|
232 |
* @since 1.0.0
|
233 |
* @return Enhanced_Ecommerce_Google_Analytics_Loader Orchestrates the hooks of the plugin.
|
234 |
*/
|
235 |
+
|
236 |
public function get_loader() {
|
237 |
return $this->loader;
|
238 |
}
|
243 |
* @since 1.0.0
|
244 |
* @return string The version number of the plugin.
|
245 |
*/
|
246 |
+
|
247 |
public function get_version() {
|
248 |
return $this->version;
|
249 |
}
|
256 |
$links[] = '<a href="https://1.envato.market/Yvn3R" target="_blank"><b>Upgrade to Premium</b></a>';
|
257 |
return $links;
|
258 |
}
|
259 |
+
|
260 |
+
/**
|
261 |
+
* Check Enhance E-commerce Plugin is Activated
|
262 |
+
* Free Plugin
|
263 |
+
*/
|
264 |
+
|
265 |
+
public function check_dependency(){
|
266 |
+
if ( function_exists('run_actionable_google_analytics')) {
|
267 |
+
_e('<div class="error"><p><strong>'. wp_sprintf( 'Note: ' ) .'</strong>'. wp_sprintf( 'It seems <strong>Actionable Google Analytics Plugin</strong> is active on your store. Kindly deactivate it in order to avoid data duplication in GA.' ) .'</p></div>');
|
268 |
+
die();
|
269 |
+
}
|
270 |
+
}
|
271 |
}
|
public/class-enhanced-ecommerce-google-analytics-public.php
CHANGED
@@ -28,7 +28,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
28 |
* @return void
|
29 |
*/
|
30 |
//set plugin version
|
31 |
-
public $tvc_eeVer = '2.
|
32 |
|
33 |
protected $tvc_aga;
|
34 |
|
@@ -266,7 +266,6 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
266 |
$_product = $order->get_product_from_item($item);
|
267 |
if (isset($_product->variation_data)) {
|
268 |
$categories=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
|
269 |
-
|
270 |
} else {
|
271 |
$out = array();
|
272 |
if(version_compare($woocommerce->version, "2.7", "<")){
|
@@ -367,7 +366,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
367 |
function add_to_cart() {
|
368 |
if ($this->disable_tracking($this->ga_eeT))
|
369 |
return;
|
370 |
-
//return if not product page
|
371 |
if (!is_single())
|
372 |
return;
|
373 |
global $product,$woocommerce;
|
@@ -574,7 +573,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
574 |
}
|
575 |
|
576 |
} else {
|
577 |
-
//else prod add in homepage recent json
|
578 |
if(version_compare($woocommerce->version, "2.7", "<")){
|
579 |
$homepage_json_rp[get_permalink($product->id)] =array(
|
580 |
"tvc_id" => esc_html($product->id),
|
28 |
* @return void
|
29 |
*/
|
30 |
//set plugin version
|
31 |
+
public $tvc_eeVer = '2.3.0';
|
32 |
|
33 |
protected $tvc_aga;
|
34 |
|
266 |
$_product = $order->get_product_from_item($item);
|
267 |
if (isset($_product->variation_data)) {
|
268 |
$categories=esc_js(wc_get_formatted_variation($_product->get_variation_attributes(), true));
|
|
|
269 |
} else {
|
270 |
$out = array();
|
271 |
if(version_compare($woocommerce->version, "2.7", "<")){
|
366 |
function add_to_cart() {
|
367 |
if ($this->disable_tracking($this->ga_eeT))
|
368 |
return;
|
369 |
+
//return if not product page
|
370 |
if (!is_single())
|
371 |
return;
|
372 |
global $product,$woocommerce;
|
573 |
}
|
574 |
|
575 |
} else {
|
576 |
+
//else prod add in homepage recent json
|
577 |
if(version_compare($woocommerce->version, "2.7", "<")){
|
578 |
$homepage_json_rp[get_permalink($product->id)] =array(
|
579 |
"tvc_id" => esc_html($product->id),
|
readme.txt
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
=== Enhanced Ecommerce Google Analytics Plugin for WooCommerce ===
|
2 |
Contributors: Tatvic
|
3 |
Plugin Name: Enhanced Ecommerce for WooCommerce Store
|
4 |
Plugin URI: http://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/
|
5 |
Tags: Google Analytics, Universal Analytics, Enhanced E-commerce, E-commerce, e-commerce, woo-commerce,Ecommerce,WooCommerce, commerce, Wordpress Enhanced Ecommerce, WooCommerce Enhanced Ecommerce, WooCommerce Google Analytics, Google Analytics Plugin, Enhanced Ecommerce Plugin
|
6 |
Author URI: https://www.tatvic.com/
|
7 |
Author: Tatvic
|
8 |
-
Requires at least:
|
9 |
-
Tested up to: 5.
|
10 |
-
Requires PHP: 5.6
|
11 |
-
Stable tag: 2.
|
12 |
-
Version: 2.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -35,6 +35,7 @@ Provides integration between Enhanced Ecommerce feature of Google Analytics and
|
|
35 |
9. Set your local currency
|
36 |
10. Google Analytics Opt Out
|
37 |
11. IP Anonymization
|
|
|
38 |
|
39 |
|
40 |
= Installation Instructions =
|
@@ -202,6 +203,12 @@ To avoid sending your own transaction data or sessions data in Google Analytics,
|
|
202 |
|
203 |
== Changelog ==
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
= 2.2.1 - 24/09/2019 =
|
206 |
* Compatibility with WooCommerce 3.7.0
|
207 |
* Minor Bug Fixes
|
1 |
+
=== Enhanced Ecommerce Google Analytics Plugin for WooCommerce ===
|
2 |
Contributors: Tatvic
|
3 |
Plugin Name: Enhanced Ecommerce for WooCommerce Store
|
4 |
Plugin URI: http://wordpress.org/plugins/enhanced-e-commerce-for-woocommerce-store/
|
5 |
Tags: Google Analytics, Universal Analytics, Enhanced E-commerce, E-commerce, e-commerce, woo-commerce,Ecommerce,WooCommerce, commerce, Wordpress Enhanced Ecommerce, WooCommerce Enhanced Ecommerce, WooCommerce Google Analytics, Google Analytics Plugin, Enhanced Ecommerce Plugin
|
6 |
Author URI: https://www.tatvic.com/
|
7 |
Author: Tatvic
|
8 |
+
Requires at least: 1.4.1
|
9 |
+
Tested up to: 5.3
|
10 |
+
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 2.3.0
|
12 |
+
Version: 2.3.0
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
35 |
9. Set your local currency
|
36 |
10. Google Analytics Opt Out
|
37 |
11. IP Anonymization
|
38 |
+
12. = Added Actionable Google Analytics - 14 Days Free Trial =
|
39 |
|
40 |
|
41 |
= Installation Instructions =
|
203 |
|
204 |
== Changelog ==
|
205 |
|
206 |
+
= 2.3.0 - 02/12/2019 =
|
207 |
+
* Compatibility with WooCommerce 3.8.0
|
208 |
+
* Compatibility with Wordpress 5.3
|
209 |
+
* Minor Bug Fixes
|
210 |
+
* Added 14 Days Free Trial of Actionable Google Analytics
|
211 |
+
|
212 |
= 2.2.1 - 24/09/2019 =
|
213 |
* Compatibility with WooCommerce 3.7.0
|
214 |
* Minor Bug Fixes
|