Version Description
Download this release
Release Info
Developer | PixelYourSite |
Plugin | PixelYourSite – Facebook Pixel (Events, WooCommerce & Easy Digital Downloads) |
Version | 5.1.0 |
Comparing to | |
See all releases |
Code changes from version 5.0.9 to 5.1.0
- facebook-pixel-master.php +4 -4
- inc/integrations/facebook-for-woocommerce.php +8 -14
- readme.txt +7 -2
facebook-pixel-master.php
CHANGED
@@ -5,17 +5,17 @@
|
|
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
|
9 |
License: GPLv3
|
10 |
-
|
11 |
-
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
-
define( 'PYS_FREE_VERSION', '5.0
|
19 |
|
20 |
if ( ! function_exists( 'pys_is_pixelyoursite_pro_active' ) ) {
|
21 |
|
5 |
Plugin URI: http://www.pixelyoursite.com/facebook-pixel-plugin-help
|
6 |
Author: PixelYourSite
|
7 |
Author URI: http://www.pixelyoursite.com
|
8 |
+
Version: 5.1.0
|
9 |
License: GPLv3
|
10 |
+
WC requires at least: 2.6.0
|
11 |
+
WC tested up to: 3.0.0
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
15 |
exit; // Exit if accessed directly.
|
16 |
}
|
17 |
|
18 |
+
define( 'PYS_FREE_VERSION', '5.1.0' );
|
19 |
|
20 |
if ( ! function_exists( 'pys_is_pixelyoursite_pro_active' ) ) {
|
21 |
|
inc/integrations/facebook-for-woocommerce.php
CHANGED
@@ -21,7 +21,7 @@ if ( class_exists( 'WC_Facebookcommerce' ) && ! class_exists( 'WC_Facebookcommer
|
|
21 |
/** @noinspection PhpUndefinedClassInspection */
|
22 |
class WC_Facebookcommerce_EventsTracker {
|
23 |
|
24 |
-
public function __construct( $pixel_id, $user_info ) {
|
25 |
}
|
26 |
|
27 |
public function inject_base_pixel() {
|
@@ -72,19 +72,13 @@ if ( class_exists( 'WC_Facebookcommerce' ) ) :
|
|
72 |
return $content_id;
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
$product->get_sku(),
|
83 |
-
'wc_post_id_' . $product->get_id(),
|
84 |
-
$retailer_id
|
85 |
-
);
|
86 |
-
|
87 |
-
return array_values( array_filter( $ids ) );
|
88 |
|
89 |
}
|
90 |
|
21 |
/** @noinspection PhpUndefinedClassInspection */
|
22 |
class WC_Facebookcommerce_EventsTracker {
|
23 |
|
24 |
+
public function __construct( $pixel_id = null, $user_info = null ) {
|
25 |
}
|
26 |
|
27 |
public function inject_base_pixel() {
|
72 |
return $content_id;
|
73 |
}
|
74 |
|
75 |
+
if ( $sku = $product->get_sku() ) {
|
76 |
+
$value = $product->get_sku() . '_' . $product->get_id();
|
77 |
+
} else {
|
78 |
+
$value = 'wc_post_id_' . $product->get_id();
|
79 |
+
}
|
80 |
+
|
81 |
+
return array( $value );
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
}
|
84 |
|
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.3
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 5.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -298,7 +298,12 @@ We have an article about how to create Custom Reports:
|
|
298 |
8. WooCommerce integration comes with out of the box Facebook Dynamic Ads setup
|
299 |
9. These are the normal events on a WooCommerce thank you page: the Purchase event has content_ids and content_types (required by Dynamic Ads). The reported error for the GeneralEvent can be ignored (as explained in the help pages)
|
300 |
|
301 |
-
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
302 |
|
303 |
= PixelYourSite 5.0.9 =
|
304 |
|
4 |
Requires at least: 3.0.1
|
5 |
Requires PHP: 5.3
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 5.1.0
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
298 |
8. WooCommerce integration comes with out of the box Facebook Dynamic Ads setup
|
299 |
9. These are the normal events on a WooCommerce thank you page: the Purchase event has content_ids and content_types (required by Dynamic Ads). The reported error for the GeneralEvent can be ignored (as explained in the help pages)
|
300 |
|
301 |
+
== Changelog ==
|
302 |
+
|
303 |
+
= PixelYourSite 5.1.0 =
|
304 |
+
|
305 |
+
* Fixing possible compatibility problem with Facebook for WooCommerce extension
|
306 |
+
* Improving Facebook for WooCommerce ID logic
|
307 |
|
308 |
= PixelYourSite 5.0.9 =
|
309 |
|