Version Description
- 8/07/2021 =
- Bug fix - product_count notice was being displayed for some users, it is resolved now.
Download this release
Release Info
Developer | Tatvic |
Plugin | Enhanced Ecommerce Google Analytics Plugin for WooCommerce |
Version | 3.1.3 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.1.3
enhanced-ecommerce-google-analytics.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: Enhanced E-commerce for Woocommerce store
|
17 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
18 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
19 |
-
* Version: 3.1.
|
20 |
* Author: Tatvic
|
21 |
* Author URI: www.tatvic.com
|
22 |
* License: GPL-2.0+
|
@@ -38,7 +38,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_TVC_VERSION', '3.1.
|
42 |
$fullName = plugin_basename( __FILE__ );
|
43 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
44 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
16 |
* Plugin Name: Enhanced E-commerce for Woocommerce store
|
17 |
* Plugin URI: https://www.tatvic.com/tatvic-labs/woocommerce-extension/
|
18 |
* Description: Automates eCommerce tracking in Google Analytics, dynamic remarkting in Google Ads, and provides complete Google Shopping features.
|
19 |
+
* Version: 3.1.3
|
20 |
* Author: Tatvic
|
21 |
* Author URI: www.tatvic.com
|
22 |
* License: GPL-2.0+
|
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_TVC_VERSION', '3.1.3' );
|
42 |
$fullName = plugin_basename( __FILE__ );
|
43 |
$dir = str_replace('/enhanced-ecommerce-google-analytics.php','',$fullName);
|
44 |
if ( ! defined( 'ENHANCAD_PLUGIN_NAME' ) ) {
|
public/class-enhanced-ecommerce-google-analytics-public-pro.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package Enhanced_Ecommerce_Google_Analytics
|
20 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/public
|
21 |
-
* @author
|
22 |
*/
|
23 |
class Enhanced_Ecommerce_Google_Analytics_Public {
|
24 |
/**
|
@@ -274,23 +274,23 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
274 |
$sub_data = array();
|
275 |
if(isset($google_detail['setting'])){
|
276 |
$googleDetail = $google_detail['setting'];
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
}
|
295 |
$tvc_sMetaData = array(
|
296 |
'tvc_wcv' => $woocommerce->version,
|
18 |
*
|
19 |
* @package Enhanced_Ecommerce_Google_Analytics
|
20 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/public
|
21 |
+
* @author Tatvic
|
22 |
*/
|
23 |
class Enhanced_Ecommerce_Google_Analytics_Public {
|
24 |
/**
|
274 |
$sub_data = array();
|
275 |
if(isset($google_detail['setting'])){
|
276 |
$googleDetail = $google_detail['setting'];
|
277 |
+
$sub_data['sub_id'] = isset($googleDetail->id)?$googleDetail->id:"";
|
278 |
+
$sub_data['cu_id']=isset($googleDetail->customer_id)?$googleDetail->customer_id:"";
|
279 |
+
$sub_data['pl_id']=isset($googleDetail->plan_id)?$googleDetail->plan_id:"";
|
280 |
+
$sub_data['ga_tra_option']=isset($googleDetail->tracking_option)?$googleDetail->tracking_option:"";
|
281 |
+
$sub_data['ga_property_id']=isset($googleDetail->property_id)?$googleDetail->property_id:"";
|
282 |
+
$sub_data['ga_measurement_id']=isset($googleDetail->measurement_id)?$googleDetail->measurement_id:"";
|
283 |
+
$sub_data['ga_ads_id']=isset($googleDetail->google_ads_id)?$googleDetail->google_ads_id:"";
|
284 |
+
$sub_data['ga_gmc_id']=isset($googleDetail->google_merchant_center_id)?$googleDetail->google_merchant_center_id:"";
|
285 |
+
$sub_data['op_gtag_js']=isset($googleDetail->add_gtag_snippet)?$googleDetail->add_gtag_snippet:"";
|
286 |
+
$sub_data['op_en_e_t']=isset($googleDetail->enhanced_e_commerce_tracking)?$googleDetail->enhanced_e_commerce_tracking:"";
|
287 |
+
$sub_data['op_rm_t_t']=isset($googleDetail->remarketing_tags)?$googleDetail->remarketing_tags:"";
|
288 |
+
$sub_data['op_dy_rm_t_t']=isset($googleDetail->dynamic_remarketing_tags)?$googleDetail->dynamic_remarketing_tags:"";
|
289 |
+
$sub_data['op_li_ga_wi_ads']=isset($googleDetail->link_google_analytics_with_google_ads)?$googleDetail->link_google_analytics_with_google_ads:"";
|
290 |
+
$sub_data['gmc_is_product_sync']=isset($googleDetail->is_product_sync)?$googleDetail->is_product_sync:"";
|
291 |
+
$sub_data['gmc_is_site_verified']=isset($googleDetail->is_site_verified)?$googleDetail->is_site_verified:"";
|
292 |
+
$sub_data['gmc_is_domain_claim']=isset($googleDetail->is_domain_claim)?$googleDetail->is_domain_claim:"";
|
293 |
+
$sub_data['gmc_product_count']=isset($googleDetail->product_count)?$googleDetail->product_count:"";
|
294 |
}
|
295 |
$tvc_sMetaData = array(
|
296 |
'tvc_wcv' => $woocommerce->version,
|
public/class-enhanced-ecommerce-google-analytics-public.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
*
|
19 |
* @package Enhanced_Ecommerce_Google_Analytics
|
20 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/public
|
21 |
-
* @author
|
22 |
*/
|
23 |
class Enhanced_Ecommerce_Google_Analytics_Public {
|
24 |
/**
|
@@ -104,6 +104,8 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
104 |
protected $ads_edrt;
|
105 |
protected $ads_tracking_id;
|
106 |
protected $TVC_Admin_Helper;
|
|
|
|
|
107 |
/**
|
108 |
* Enhanced_Ecommerce_Google_Analytics_Public constructor.
|
109 |
* @param $plugin_name
|
@@ -112,6 +114,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
112 |
|
113 |
public function __construct($plugin_name, $version) {
|
114 |
$this->TVC_Admin_Helper = new TVC_Admin_Helper();
|
|
|
115 |
$this->plugin_name = $plugin_name;
|
116 |
$this->version = $version;
|
117 |
$this->tvc_aga = $this->get_option("tvc_aga");
|
@@ -141,6 +144,13 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
141 |
$this->ads_edrt = get_option('ads_edrt');
|
142 |
//$this->subscription_id = $this->get_option("subscription_id");
|
143 |
//setcookie('subscription_id', $this->subscription_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
144 |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
|
145 |
// Put your plugin code here
|
146 |
add_action('woocommerce_init' , function (){
|
@@ -181,23 +191,23 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
181 |
$sub_data = array();
|
182 |
if(isset($google_detail['setting'])){
|
183 |
$googleDetail = $google_detail['setting'];
|
184 |
-
$sub_data['sub_id'] = $googleDetail->id;
|
185 |
-
$sub_data['cu_id']
|
186 |
-
$sub_data['pl_id']
|
187 |
-
$sub_data['ga_tra_option']
|
188 |
-
$sub_data['ga_property_id']
|
189 |
-
$sub_data['ga_measurement_id']
|
190 |
-
$sub_data['ga_ads_id']
|
191 |
-
$sub_data['ga_gmc_id']
|
192 |
-
$sub_data['op_gtag_js']
|
193 |
-
$sub_data['op_en_e_t']
|
194 |
-
$sub_data['op_rm_t_t']
|
195 |
-
$sub_data['op_dy_rm_t_t']
|
196 |
-
$sub_data['op_li_ga_wi_ads']
|
197 |
-
$sub_data['gmc_is_product_sync']
|
198 |
-
$sub_data['gmc_is_site_verified']
|
199 |
-
$sub_data['gmc_is_domain_claim']
|
200 |
-
$sub_data['gmc_product_count']
|
201 |
}
|
202 |
$tvc_sMetaData = array(
|
203 |
'tvc_wcv' => $woocommerce->version,
|
@@ -314,6 +324,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
314 |
echo 'var adsTringId = '.json_encode($this->ads_tracking_id).';';
|
315 |
echo 'var ads_ert = '.json_encode($this->ads_ert).';';
|
316 |
echo 'var ads_edrt = '.json_encode($this->ads_edrt).';';
|
|
|
317 |
echo '</script>';
|
318 |
|
319 |
if($this->ga_OPTOUT) {
|
@@ -372,10 +383,9 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
372 |
</script>
|
373 |
';
|
374 |
}
|
375 |
-
if($this->ads_ert || $this->ads_edrt){
|
376 |
-
$
|
377 |
-
|
378 |
-
echo base64_decode($remarketing['snippets']);
|
379 |
}else{
|
380 |
$google_detail = $this->TVC_Admin_Helper->get_ee_options_data();
|
381 |
if(isset($google_detail['setting'])){
|
@@ -554,14 +564,15 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
554 |
var ads_items = [];
|
555 |
var ads_value=0;
|
556 |
for(var t_item in tvc_oc){
|
557 |
-
|
558 |
ads_items.push({
|
559 |
item_id: tvc_oc[t_item].tvc_id,
|
560 |
google_business_vertical: "retail"
|
561 |
});
|
562 |
}
|
563 |
gtag("event","purchase", {
|
564 |
-
"
|
|
|
565 |
"items": ads_items
|
566 |
});
|
567 |
}
|
@@ -614,7 +625,8 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
614 |
});
|
615 |
}
|
616 |
gtag("event","purchase", {
|
617 |
-
"
|
|
|
618 |
"items": ads_items
|
619 |
});
|
620 |
}
|
@@ -675,6 +687,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
675 |
//add remarketing and dynamicremarketing tags
|
676 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
677 |
gtag("event","add_to_cart", {
|
|
|
678 |
"value": tvc_po.tvc_p,
|
679 |
"items": [
|
680 |
{
|
@@ -711,6 +724,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
711 |
//add remarketing and dynamicremarketing tags
|
712 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
713 |
gtag("event","add_to_cart", {
|
|
|
714 |
"value": tvc_po.tvc_p,
|
715 |
"items": [
|
716 |
{
|
@@ -794,6 +808,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
794 |
//add remarketing and dynamicremarketing tags
|
795 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
796 |
gtag("event","view_item", {
|
|
|
797 |
"value": tvc_po.tvc_p,
|
798 |
"items": [
|
799 |
{
|
@@ -828,6 +843,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
828 |
//add remarketing and dynamicremarketing tags
|
829 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
830 |
gtag("event","view_item", {
|
|
|
831 |
"value": tvc_po.tvc_p,
|
832 |
"items": [
|
833 |
{
|
@@ -1097,6 +1113,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1097 |
}
|
1098 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1099 |
gtag("event","view_item_list", {
|
|
|
1100 |
"value": t_json_name[t_item].tvc_p,
|
1101 |
"items": [
|
1102 |
{
|
@@ -1116,6 +1133,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1116 |
}
|
1117 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1118 |
gtag("event","view_item_list", {
|
|
|
1119 |
"value": t_json_name[t_item].tvc_p,
|
1120 |
"items": [
|
1121 |
{
|
@@ -1172,6 +1190,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1172 |
});
|
1173 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1174 |
gtag("event","add_to_cart", {
|
|
|
1175 |
"value": t_prod_data_json[t_prod_url_key].tvc_p,
|
1176 |
"items": [
|
1177 |
{
|
@@ -1221,6 +1240,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1221 |
}
|
1222 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1223 |
gtag("event","view_item_list", {
|
|
|
1224 |
"value": t_json_name[t_item].tvc_p,
|
1225 |
"items": [
|
1226 |
{
|
@@ -1243,6 +1263,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1243 |
}
|
1244 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1245 |
gtag("event","view_item_list", {
|
|
|
1246 |
"value": t_json_name[t_item].tvc_p,
|
1247 |
"items": [
|
1248 |
{
|
@@ -1301,6 +1322,7 @@ class Enhanced_Ecommerce_Google_Analytics_Public {
|
|
1301 |
|
1302 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1303 |
gtag("event","add_to_cart", {
|
|
|
1304 |
"value": t_prod_data_json[t_prod_url_key].tvc_p,
|
1305 |
"items": [
|
1306 |
{
|
18 |
*
|
19 |
* @package Enhanced_Ecommerce_Google_Analytics
|
20 |
* @subpackage Enhanced_Ecommerce_Google_Analytics/public
|
21 |
+
* @author Tatvic
|
22 |
*/
|
23 |
class Enhanced_Ecommerce_Google_Analytics_Public {
|
24 |
/**
|
104 |
protected $ads_edrt;
|
105 |
protected $ads_tracking_id;
|
106 |
protected $TVC_Admin_Helper;
|
107 |
+
protected $remarketing_snippet_id;
|
108 |
+
protected $remarketing_snippets;
|
109 |
/**
|
110 |
* Enhanced_Ecommerce_Google_Analytics_Public constructor.
|
111 |
* @param $plugin_name
|
114 |
|
115 |
public function __construct($plugin_name, $version) {
|
116 |
$this->TVC_Admin_Helper = new TVC_Admin_Helper();
|
117 |
+
|
118 |
$this->plugin_name = $plugin_name;
|
119 |
$this->version = $version;
|
120 |
$this->tvc_aga = $this->get_option("tvc_aga");
|
144 |
$this->ads_edrt = get_option('ads_edrt');
|
145 |
//$this->subscription_id = $this->get_option("subscription_id");
|
146 |
//setcookie('subscription_id', $this->subscription_id);
|
147 |
+
|
148 |
+
$remarketing = unserialize(get_option('ee_remarketing_snippets'));
|
149 |
+
if(!empty($remarketing) && isset($remarketing['snippets']) && $remarketing['snippets']){
|
150 |
+
$this->remarketing_snippets = base64_decode($remarketing['snippets']);
|
151 |
+
$this->remarketing_snippet_id = isset($remarketing['id'])?$remarketing['id']:"";
|
152 |
+
}
|
153 |
+
|
154 |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
|
155 |
// Put your plugin code here
|
156 |
add_action('woocommerce_init' , function (){
|
191 |
$sub_data = array();
|
192 |
if(isset($google_detail['setting'])){
|
193 |
$googleDetail = $google_detail['setting'];
|
194 |
+
$sub_data['sub_id'] = isset($googleDetail->id)?$googleDetail->id:"";
|
195 |
+
$sub_data['cu_id']=isset($googleDetail->customer_id)?$googleDetail->customer_id:"";
|
196 |
+
$sub_data['pl_id']=isset($googleDetail->plan_id)?$googleDetail->plan_id:"";
|
197 |
+
$sub_data['ga_tra_option']=isset($googleDetail->tracking_option)?$googleDetail->tracking_option:"";
|
198 |
+
$sub_data['ga_property_id']=isset($googleDetail->property_id)?$googleDetail->property_id:"";
|
199 |
+
$sub_data['ga_measurement_id']=isset($googleDetail->measurement_id)?$googleDetail->measurement_id:"";
|
200 |
+
$sub_data['ga_ads_id']=isset($googleDetail->google_ads_id)?$googleDetail->google_ads_id:"";
|
201 |
+
$sub_data['ga_gmc_id']=isset($googleDetail->google_merchant_center_id)?$googleDetail->google_merchant_center_id:"";
|
202 |
+
$sub_data['op_gtag_js']=isset($googleDetail->add_gtag_snippet)?$googleDetail->add_gtag_snippet:"";
|
203 |
+
$sub_data['op_en_e_t']=isset($googleDetail->enhanced_e_commerce_tracking)?$googleDetail->enhanced_e_commerce_tracking:"";
|
204 |
+
$sub_data['op_rm_t_t']=isset($googleDetail->remarketing_tags)?$googleDetail->remarketing_tags:"";
|
205 |
+
$sub_data['op_dy_rm_t_t']=isset($googleDetail->dynamic_remarketing_tags)?$googleDetail->dynamic_remarketing_tags:"";
|
206 |
+
$sub_data['op_li_ga_wi_ads']=isset($googleDetail->link_google_analytics_with_google_ads)?$googleDetail->link_google_analytics_with_google_ads:"";
|
207 |
+
$sub_data['gmc_is_product_sync']=isset($googleDetail->is_product_sync)?$googleDetail->is_product_sync:"";
|
208 |
+
$sub_data['gmc_is_site_verified']=isset($googleDetail->is_site_verified)?$googleDetail->is_site_verified:"";
|
209 |
+
$sub_data['gmc_is_domain_claim']=isset($googleDetail->is_domain_claim)?$googleDetail->is_domain_claim:"";
|
210 |
+
$sub_data['gmc_product_count']=isset($googleDetail->product_count)?$googleDetail->product_count:"";
|
211 |
}
|
212 |
$tvc_sMetaData = array(
|
213 |
'tvc_wcv' => $woocommerce->version,
|
324 |
echo 'var adsTringId = '.json_encode($this->ads_tracking_id).';';
|
325 |
echo 'var ads_ert = '.json_encode($this->ads_ert).';';
|
326 |
echo 'var ads_edrt = '.json_encode($this->ads_edrt).';';
|
327 |
+
echo 'var remarketing_snippet_id = '.json_encode($this->remarketing_snippet_id).';';
|
328 |
echo '</script>';
|
329 |
|
330 |
if($this->ga_OPTOUT) {
|
383 |
</script>
|
384 |
';
|
385 |
}
|
386 |
+
if($this->ads_ert || $this->ads_edrt){
|
387 |
+
if(!empty($this->remarketing_snippets) && $this->remarketing_snippets){
|
388 |
+
echo $this->remarketing_snippets;
|
|
|
389 |
}else{
|
390 |
$google_detail = $this->TVC_Admin_Helper->get_ee_options_data();
|
391 |
if(isset($google_detail['setting'])){
|
564 |
var ads_items = [];
|
565 |
var ads_value=0;
|
566 |
for(var t_item in tvc_oc){
|
567 |
+
ads_value=ads_value + parseFloat(tvc_oc[t_item].tvc_p);
|
568 |
ads_items.push({
|
569 |
item_id: tvc_oc[t_item].tvc_id,
|
570 |
google_business_vertical: "retail"
|
571 |
});
|
572 |
}
|
573 |
gtag("event","purchase", {
|
574 |
+
"send_to":remarketing_snippet_id,
|
575 |
+
"value": tvc_td.revenue,
|
576 |
"items": ads_items
|
577 |
});
|
578 |
}
|
625 |
});
|
626 |
}
|
627 |
gtag("event","purchase", {
|
628 |
+
"send_to":remarketing_snippet_id,
|
629 |
+
"value": tvc_td.revenue,
|
630 |
"items": ads_items
|
631 |
});
|
632 |
}
|
687 |
//add remarketing and dynamicremarketing tags
|
688 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
689 |
gtag("event","add_to_cart", {
|
690 |
+
"send_to":remarketing_snippet_id,
|
691 |
"value": tvc_po.tvc_p,
|
692 |
"items": [
|
693 |
{
|
724 |
//add remarketing and dynamicremarketing tags
|
725 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
726 |
gtag("event","add_to_cart", {
|
727 |
+
"send_to":remarketing_snippet_id,
|
728 |
"value": tvc_po.tvc_p,
|
729 |
"items": [
|
730 |
{
|
808 |
//add remarketing and dynamicremarketing tags
|
809 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
810 |
gtag("event","view_item", {
|
811 |
+
"send_to":remarketing_snippet_id,
|
812 |
"value": tvc_po.tvc_p,
|
813 |
"items": [
|
814 |
{
|
843 |
//add remarketing and dynamicremarketing tags
|
844 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
845 |
gtag("event","view_item", {
|
846 |
+
"send_to":remarketing_snippet_id,
|
847 |
"value": tvc_po.tvc_p,
|
848 |
"items": [
|
849 |
{
|
1113 |
}
|
1114 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1115 |
gtag("event","view_item_list", {
|
1116 |
+
"send_to":remarketing_snippet_id,
|
1117 |
"value": t_json_name[t_item].tvc_p,
|
1118 |
"items": [
|
1119 |
{
|
1133 |
}
|
1134 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1135 |
gtag("event","view_item_list", {
|
1136 |
+
"send_to":remarketing_snippet_id,
|
1137 |
"value": t_json_name[t_item].tvc_p,
|
1138 |
"items": [
|
1139 |
{
|
1190 |
});
|
1191 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1192 |
gtag("event","add_to_cart", {
|
1193 |
+
"send_to":remarketing_snippet_id,
|
1194 |
"value": t_prod_data_json[t_prod_url_key].tvc_p,
|
1195 |
"items": [
|
1196 |
{
|
1240 |
}
|
1241 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1242 |
gtag("event","view_item_list", {
|
1243 |
+
"send_to":remarketing_snippet_id,
|
1244 |
"value": t_json_name[t_item].tvc_p,
|
1245 |
"items": [
|
1246 |
{
|
1263 |
}
|
1264 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1265 |
gtag("event","view_item_list", {
|
1266 |
+
"send_to":remarketing_snippet_id,
|
1267 |
"value": t_json_name[t_item].tvc_p,
|
1268 |
"items": [
|
1269 |
{
|
1322 |
|
1323 |
if(adsTringId != "" && ( ads_ert == 1 || ads_edrt == 1)){
|
1324 |
gtag("event","add_to_cart", {
|
1325 |
+
"send_to":remarketing_snippet_id,
|
1326 |
"value": t_prod_data_json[t_prod_url_key].tvc_p,
|
1327 |
"items": [
|
1328 |
{
|
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author: Tatvic
|
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.7
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
-
Stable tag: 3.1.
|
12 |
-
Version: 3.1.
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
@@ -383,6 +383,9 @@ You can resolve the duplication of data by removing the manually implemented GA
|
|
383 |
|
384 |
== Changelog ==
|
385 |
|
|
|
|
|
|
|
386 |
= 3.1.2 - 29/06/2021 =
|
387 |
* Fixed remarketing code bug
|
388 |
|
8 |
Requires at least: 1.4.1
|
9 |
Tested up to: 5.7
|
10 |
Requires PHP: 5.6 or Higher
|
11 |
+
Stable tag: 3.1.3
|
12 |
+
Version: 3.1.3
|
13 |
License: GPLv3
|
14 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
15 |
|
383 |
|
384 |
== Changelog ==
|
385 |
|
386 |
+
= 3.1.3 - 8/07/2021 =
|
387 |
+
* Bug fix - product_count notice was being displayed for some users, it is resolved now.
|
388 |
+
|
389 |
= 3.1.2 - 29/06/2021 =
|
390 |
* Fixed remarketing code bug
|
391 |
|