PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) - Version 8.2.8

Version Description

Download this release

Release Info

Developer PixelYourSite
Plugin Icon 128x128 PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads)
Version 8.2.8
Comparing to
See all releases

Code changes from version 8.2.7 to 8.2.8

dist/scripts/public.js CHANGED
@@ -908,13 +908,12 @@ if (!Array.prototype.includes) {
908
 
909
  var isAddToCartFromJs = options.woo.hasOwnProperty("addToCartCatchMethod")
910
  && options.woo.addToCartCatchMethod === "add_cart_js";
911
- console.log(allData.e_id,"isAddToCartFromJs "+isAddToCartFromJs)
912
  if(allData.name === "RemoveFromCart"
913
  || (isAddToCartFromJs && allData.e_id === "woo_add_to_cart_on_button_click"))
914
  {
915
  Facebook.updateEventId(allData.name);
916
  allData.eventID = Facebook.getEventId(allData.name);
917
- console.log('updateEventId')
918
  } else if( options.facebook.ajaxForServerEvent
919
  || isApiDisabled
920
  || allData.delay > 0
@@ -1255,10 +1254,11 @@ if (!Array.prototype.includes) {
1255
  Cookies.set('pys_fb_event_id', JSON.stringify(ids));
1256
  },
1257
  updateEventId:function(key) {
1258
- var data = JSON.parse(Cookies.get("pys_fb_event_id"));
1259
  if(data === undefined) {
1260
  this.initEventIdCookies();
1261
  } else {
 
1262
  data[key] = pys_generate_token(36);
1263
  Cookies.set('pys_fb_event_id', JSON.stringify(data) );
1264
  }
908
 
909
  var isAddToCartFromJs = options.woo.hasOwnProperty("addToCartCatchMethod")
910
  && options.woo.addToCartCatchMethod === "add_cart_js";
911
+
912
  if(allData.name === "RemoveFromCart"
913
  || (isAddToCartFromJs && allData.e_id === "woo_add_to_cart_on_button_click"))
914
  {
915
  Facebook.updateEventId(allData.name);
916
  allData.eventID = Facebook.getEventId(allData.name);
 
917
  } else if( options.facebook.ajaxForServerEvent
918
  || isApiDisabled
919
  || allData.delay > 0
1254
  Cookies.set('pys_fb_event_id', JSON.stringify(ids));
1255
  },
1256
  updateEventId:function(key) {
1257
+ var cooData = Cookies.get("pys_fb_event_id")
1258
  if(data === undefined) {
1259
  this.initEventIdCookies();
1260
  } else {
1261
+ var data = JSON.parse(cooData);
1262
  data[key] = pys_generate_token(36);
1263
  Cookies.set('pys_fb_event_id', JSON.stringify(data) );
1264
  }
facebook-pixel-master.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No coding <strong>Facebook Pixel, Facebook Converion API,</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. Full support for <strong>ConsentMagic.com</strong>.
7
- * Version: 8.2.7
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No coding <strong>Facebook Pixel, Facebook Converion API,</strong> and <strong>Google Analytics</strong> install. Track key actions with our Signal event, or configure your own events. WooCommerce and EDD fully supported, with Facebook Dynamic Ads Pixel set-up and Google Analytics Enhanced Ecommerce. Insert any custom script with our Head & Footer option. Add the <strong>Pinterest Tag</strong> with our free add-on. The PRO version adds support for the Google Ads tag plus a lot of extra stuff. Full support for <strong>ConsentMagic.com</strong>.
7
+ * Version: 8.2.8
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
pixelyoursite.php CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
- define( 'PYS_FREE_VERSION', '8.2.7' );
8
  define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
9
  define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
10
  define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
+ define( 'PYS_FREE_VERSION', '8.2.8' );
8
  define( 'PYS_FREE_PINTEREST_MIN_VERSION', '3.0.0' );
9
  define( 'PYS_FREE_BING_MIN_VERSION', '2.0.0' );
10
  define( 'PYS_FREE_PATH', untrailingslashit( plugin_dir_path( __FILE__ ) ) );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: Facebook Pixel, Facebook Conversion API, CAPI, Facebook Pixel Events, Face
4
  Requires at least: 3.0.1
5
  Requires PHP: 5.4
6
  Tested up to: 5.8
7
- Stable tag: 8.2.7
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -460,6 +460,10 @@ NO, absolutely not! We don't track any type of data about your website. We simpl
460
  == Changelog ==
461
 
462
 
 
 
 
 
463
  = PixelYourSite 8.2.7 =
464
 
465
  * Improvements regarding how WooCommerce related events are fired.
4
  Requires at least: 3.0.1
5
  Requires PHP: 5.4
6
  Tested up to: 5.8
7
+ Stable tag: 8.2.8
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
460
  == Changelog ==
461
 
462
 
463
+ = PixelYourSite 8.2.8 =
464
+
465
+ * Fix for a potential issue with the AddToCart event.
466
+
467
  = PixelYourSite 8.2.7 =
468
 
469
  * Improvements regarding how WooCommerce related events are fired.