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

Version Description

Download this release

Release Info

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

Code changes from version 5.0.3 to 5.0.4

Files changed (3) hide show
  1. facebook-pixel-master.php +2 -2
  2. inc/core.php +5 -2
  3. readme.txt +16 -1
facebook-pixel-master.php CHANGED
@@ -5,7 +5,7 @@
5
  Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
6
  Author: PixelYourSite
7
  Author URI: http://www.pixelyoursite.com
8
- Version: 5.0.3
9
  License: GPLv3
10
  */
11
 
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  exit; // Exit if accessed directly.
14
  }
15
 
16
- define( 'PYS_FREE_VERSION', '5.0.3' );
17
 
18
  require_once( 'inc/admin_notices.php' );
19
  require_once( 'inc/common.php' );
5
  Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
6
  Author: PixelYourSite
7
  Author URI: http://www.pixelyoursite.com
8
+ Version: 5.0.4
9
  License: GPLv3
10
  */
11
 
13
  exit; // Exit if accessed directly.
14
  }
15
 
16
+ define( 'PYS_FREE_VERSION', '5.0.4' );
17
 
18
  require_once( 'inc/admin_notices.php' );
19
  require_once( 'inc/common.php' );
inc/core.php CHANGED
@@ -69,8 +69,11 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
69
 
70
  // ViewContent Event
71
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
72
-
73
- $params['content_ids'] = "['" . pys_get_product_content_id( $post->ID ) . "']";
 
 
 
74
 
75
  // currency, value
76
  if ( pys_get_option( 'woo', 'enable_view_content_value' ) ) {
69
 
70
  // ViewContent Event
71
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
72
+
73
+ $product = wc_get_product( $post->ID );
74
+
75
+ $params['content_type'] = $product->get_type() == 'variable' ? 'product_group' : 'product';
76
+ $params['content_ids'] = "['" . pys_get_product_content_id( $post->ID ) . "']";
77
 
78
  // currency, value
79
  if ( pys_get_option( 'woo', 'enable_view_content_value' ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: PixelYourSite, c0d3fev3r, themister
3
  Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.7
6
- Stable tag: 5.0.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -180,6 +180,17 @@ Tested with WooCommerce 3
180
 
181
  >With Advanced Matching ON, the plugin will send to Facebook the data you have about your clients, like their names, address, email or phone, improving conversion attribution and retargeting results.
182
 
 
 
 
 
 
 
 
 
 
 
 
183
  <strong>What's next<strong>
184
 
185
  We are working on some new handy features for the plugin and we will release them soon.
@@ -307,6 +318,10 @@ We have an article about how to create Custom Reports:
307
 
308
  == Changelog ==
309
 
 
 
 
 
310
  = PixelYourSite 5.0.3 =
311
 
312
  * WooCommerce and EDD content_ids potential issue fix (the content was not correctly wrapped, leaving room for errors when SKU was used instead of the default WordPress IDs)
3
  Tags: Facebook Pixel, New Facebook Pixel, Facebook Conversion Pixel, Facebook Pixel Events, Facebook, New Facebook Pixel Events, Dynamic Events, Standard Events, Facebook Events, Facebook Standard Events, Facebook Dynamic Product Ads, WooCommerce, WooCommerce Facebook Pixel, Facebook Custom Events, Facebook Conversion Value, WooCommerce Affiliate Products, Easy Digital Downloads Pixel, Easy Digital Downloads Facebook Pixel
4
  Requires at least: 3.0.1
5
  Tested up to: 4.7
6
+ Stable tag: 5.0.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
180
 
181
  >With Advanced Matching ON, the plugin will send to Facebook the data you have about your clients, like their names, address, email or phone, improving conversion attribution and retargeting results.
182
 
183
+
184
+ **[The Pro Version](http://www.pixelyoursite.com/facebook-pixel-plugin) was seriously improved:
185
+
186
+ * Add multiple pixels IDs - [with the Super-Pack](http://www.pixelyoursite.com/super-pack)
187
+ * Use dynamic parameters - [with the Super-Pack](http://www.pixelyoursite.com/super-pack)
188
+ * Remove the pixel from any page - [with the Super-Pack](http://www.pixelyoursite.com/super-pack)
189
+ * Custom Thank You Page for WooCommerce - [with the Super-Pack](http://www.pixelyoursite.com/super-pack)
190
+
191
+ **NEW:** insert ANY script with our new Head/Footer option.
192
+
193
+
194
  <strong>What's next<strong>
195
 
196
  We are working on some new handy features for the plugin and we will release them soon.
318
 
319
  == Changelog ==
320
 
321
+ = PixelYourSite 5.0.4 =
322
+
323
+ * Changed WooCommerce ViewContent event content_type to product_group for variable products
324
+
325
  = PixelYourSite 5.0.3 =
326
 
327
  * WooCommerce and EDD content_ids potential issue fix (the content was not correctly wrapped, leaving room for errors when SKU was used instead of the default WordPress IDs)