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

Version Description

Download this release

Release Info

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

Code changes from version 8.0.4 to 8.0.5

dist/scripts/public.js CHANGED
@@ -1557,7 +1557,7 @@ if (!Array.prototype.includes) {
1557
 
1558
 
1559
  // setup Dynamic events
1560
- $.each(options.dynamicEventsTriggers, function (triggerType, events) {
1561
 
1562
  $.each(events, function (eventId, triggers) {
1563
 
@@ -1592,7 +1592,7 @@ if (!Array.prototype.includes) {
1592
  if (options.dynamicEvents.hasOwnProperty("woo_add_to_cart_on_button_click")) {
1593
 
1594
  // Loop, any kind of "simple" product, except external
1595
- $('.add_to_cart_button:not(.product_type_variable)').on("click",function (e) {
1596
 
1597
  var product_id = $(this).data('product_id');
1598
 
1557
 
1558
 
1559
  // setup Dynamic events
1560
+ $.each(options.triggerEventTypes, function (triggerType, events) {
1561
 
1562
  $.each(events, function (eventId, triggers) {
1563
 
1592
  if (options.dynamicEvents.hasOwnProperty("woo_add_to_cart_on_button_click")) {
1593
 
1594
  // Loop, any kind of "simple" product, except external
1595
+ $('.add_to_cart_button:not(.product_type_variable,.single_add_to_cart_button)').on("click",function (e) {
1596
 
1597
  var product_id = $(this).data('product_id');
1598
 
facebook-pixel-master.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, 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.
7
- * Version: 8.0.4
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
@@ -13,7 +13,7 @@
13
  * Tested up to: 5.6
14
  *
15
  * WC requires at least: 2.6.0
16
- * WC tested up to: 4.9
17
  *
18
  * Text Domain: pys
19
  */
4
  * Plugin Name: PixelYourSite
5
  * Plugin URI: http://www.pixelyoursite.com/
6
  * Description: No codding <strong>Facebook Pixel</strong> and <strong>Google Analytics</strong> install. Track key actions with our Global Events, 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.
7
+ * Version: 8.0.5
8
  * Author: PixelYourSite
9
  * Author URI: http://www.pixelyoursite.com
10
  * License: GPLv3
13
  * Tested up to: 5.6
14
  *
15
  * WC requires at least: 2.6.0
16
+ * WC tested up to: 5.0
17
  *
18
  * Text Domain: pys
19
  */
modules/facebook/facebook-server.php CHANGED
@@ -181,7 +181,7 @@ class FacebookServer {
181
 
182
  if(empty($this->access_token[$pixel_Id])) continue;
183
 
184
- $api = Api::init(null, null, $this->access_token[$pixel_Id]);
185
 
186
  $request = (new EventRequest($pixel_Id))->setEvents($events);
187
  $request->setPartnerAgent("dvpixelyoursite");
181
 
182
  if(empty($this->access_token[$pixel_Id])) continue;
183
 
184
+ $api = Api::init(null, null, $this->access_token[$pixel_Id],false);
185
 
186
  $request = (new EventRequest($pixel_Id))->setEvents($events);
187
  $request->setPartnerAgent("dvpixelyoursite");
pixelyoursite.php CHANGED
@@ -4,7 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
4
  exit; // Exit if accessed directly.
5
  }
6
 
7
- define( 'PYS_FREE_VERSION', '8.0.4' );
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.0.5' );
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, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pi
4
  Requires at least: 3.0.1
5
  Requires PHP: 5.4
6
  Tested up to: 5.6
7
- Stable tag: 8.0.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -396,6 +396,16 @@ NO, absolutely not! We don't track any type of data about your website. We simpl
396
  == Changelog ==
397
 
398
 
 
 
 
 
 
 
 
 
 
 
399
  = PixelYourSite 8.0.4 =
400
 
401
  * FIX: Warning: Invalid argument supplied for foreach() .... wp-content/plugins/pixelyoursite/includes/functions-common.php on line 688
4
  Requires at least: 3.0.1
5
  Requires PHP: 5.4
6
  Tested up to: 5.6
7
+ Stable tag: 8.0.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
396
  == Changelog ==
397
 
398
 
399
+ = PixelYourSite 8.0.5 =
400
+
401
+ * Fix for a potential JS error.
402
+
403
+ * Fix for an error that could lead to duplicated AddToCart events.
404
+
405
+ * Tweaks to Facebook Conversion API that might help fix issues we noticed with some hostings.
406
+
407
+
408
+
409
  = PixelYourSite 8.0.4 =
410
 
411
  * FIX: Warning: Invalid argument supplied for foreach() .... wp-content/plugins/pixelyoursite/includes/functions-common.php on line 688