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

Version Description

Download this release

Release Info

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

Code changes from version 5.3.1 to 5.3.2

css/admin.css CHANGED
@@ -335,6 +335,14 @@ input[type="checkbox"].big {
335
  .Purchase-visible,
336
  .Lead-visible,
337
  .CompleteRegistration-visible,
 
 
 
 
 
 
 
 
338
  .CustomCode-visible,
339
  .CustomEvent-visible {
340
  display: none;
@@ -349,6 +357,14 @@ input[type="checkbox"].big {
349
  .Lead .Lead-visible,
350
  .CompleteRegistration .CompleteRegistration-visible,
351
  .Search .Search-visible,
 
 
 
 
 
 
 
 
352
  .CustomCode .CustomCode-visible,
353
  .CustomEvent .CustomEvent-visible {
354
  display: table-row;
335
  .Purchase-visible,
336
  .Lead-visible,
337
  .CompleteRegistration-visible,
338
+ .Subscribe-visible,
339
+ .CustomizeProduct-visible,
340
+ .FindLocation-visible,
341
+ .StartTrial-visible,
342
+ .SubmitApplication-visible,
343
+ .Schedule-visible,
344
+ .Contact-visible,
345
+ .Donate-visible,
346
  .CustomCode-visible,
347
  .CustomEvent-visible {
348
  display: none;
357
  .Lead .Lead-visible,
358
  .CompleteRegistration .CompleteRegistration-visible,
359
  .Search .Search-visible,
360
+ .Subscribe .Subscribe-visible,
361
+ .CustomizeProduct .CustomizeProduct-visible,
362
+ .FindLocation .FindLocation-visible,
363
+ .StartTrial .StartTrial-visible,
364
+ .SubmitApplication .SubmitApplication-visible,
365
+ .Schedule .Schedule-visible,
366
+ .Contact .Contact-visible,
367
+ .Donate .Donate-visible,
368
  .CustomCode .CustomCode-visible,
369
  .CustomEvent .CustomEvent-visible {
370
  display: table-row;
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.3.1
9
  License: GPLv3
10
  WC requires at least: 2.6.0
11
- WC tested up to: 3.3.5
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) {
15
  exit; // Exit if accessed directly.
16
  }
17
 
18
- define( 'PYS_FREE_VERSION', '5.3.1' );
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.3.2
9
  License: GPLv3
10
  WC requires at least: 2.6.0
11
+ WC tested up to: 3.4.5
12
  */
13
 
14
  if ( ! defined( 'ABSPATH' ) ) {
15
  exit; // Exit if accessed directly.
16
  }
17
 
18
+ define( 'PYS_FREE_VERSION', '5.3.2' );
19
 
20
  if ( ! function_exists( 'pys_is_pixelyoursite_pro_active' ) ) {
21
 
inc/ajax-standard.php CHANGED
@@ -89,7 +89,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
89
  </td>
90
  </tr>
91
 
92
- <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible">
93
  <td class="legend"><p class="label"><?php _e( 'Value:', 'pys' ); ?></p></td>
94
  <td>
95
  <input type="text" name="std_event[value]" value="<?php esc_attr_e( $event['value'] ); ?>">
@@ -97,7 +97,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
97
  </td>
98
  </tr>
99
 
100
- <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible">
101
  <td class="legend"><p class="label"><?php _e( 'Currency:', 'pys' ); ?></p></td>
102
  <td>
103
  <select name="std_event[currency]" id="currency"
@@ -192,6 +192,13 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
192
  </td>
193
  </tr>
194
 
 
 
 
 
 
 
 
195
  <tr class="CustomCode-visible">
196
  <td class="legend">
197
  <p class="label" style="line-height: inherit;"><?php _e( 'Custom event code (advanced users only):', 'pys' ); ?></p></td>
@@ -214,7 +221,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
214
 
215
  <?php $param_id = uniqid() . $param; ?>
216
 
217
- <tr class="class-<?php esc_attr_e( $param_id ); ?> ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">
218
  <td class="legend"><p class="label"><?php _e( 'Param name:', 'pys' ); ?></p></td>
219
  <td>
220
  <input type="text" name="std_event[custom_names][<?php esc_attr_e( $param ); ?>]"
@@ -222,7 +229,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
222
  </td>
223
  </tr>
224
 
225
- <tr class="class-<?php esc_attr_e( $param_id ); ?> ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">
226
  <td class="legend"><p class="label"><?php _e( 'Param value:', 'pys' ); ?></p></td>
227
  <td>
228
  <input type="text" name="std_event[custom_values][<?php esc_attr_e( $param ); ?>]"
@@ -230,7 +237,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
230
  </td>
231
  </tr>
232
 
233
- <tr class="class-<?php esc_attr_e( $param_id ); ?> tall ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">
234
  <td></td>
235
  <td><a href="#" class="remove-param"
236
  data-id="<?php esc_attr_e( $param_id ); ?>">Remove param</a></td>
@@ -240,7 +247,7 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
240
 
241
  <tr id="marker"></tr>
242
 
243
- <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">
244
  <td class="legend"></td>
245
  <td>
246
  <a href="#"
@@ -343,17 +350,17 @@ if ( ! function_exists( 'pys_edit_std_event' ) ) {
343
 
344
  var id = makeid();
345
 
346
- var html = '<tr class="class-' + id + ' ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">';
347
  html += '<td class="legend"><p class="label">' + l10n_param_name + '</p></td>';
348
  html += '<td><input type="text" name="std_event[custom_names][' + id + ']" value=""></td>';
349
  html += '</tr>';
350
 
351
- html += '<tr class="class-' + id + ' ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">';
352
  html += '<td class="legend"><p class="label">' + l10n_param_value + '</p></td>';
353
  html += '<td><input type="text" name="std_event[custom_values][' + id + ']" value=""></td>';
354
  html += '</tr>';
355
 
356
- html += '<tr class="class-' + id + ' tall ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible">';
357
  html += '<td></td>';
358
  html += '<td><a href="#" class="remove-param" data-id="' + id + '">' + l10n_param_remove + '</a></td>';
359
  html += '</tr>';
89
  </td>
90
  </tr>
91
 
92
+ <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible Subscribe-visible StartTrial-visible">
93
  <td class="legend"><p class="label"><?php _e( 'Value:', 'pys' ); ?></p></td>
94
  <td>
95
  <input type="text" name="std_event[value]" value="<?php esc_attr_e( $event['value'] ); ?>">
97
  </td>
98
  </tr>
99
 
100
+ <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible Subscribe-visible StartTrial-visible">
101
  <td class="legend"><p class="label"><?php _e( 'Currency:', 'pys' ); ?></p></td>
102
  <td>
103
  <select name="std_event[currency]" id="currency"
192
  </td>
193
  </tr>
194
 
195
+ <tr class="Subscribe-visible StartTrial-visible">
196
+ <td class="legend"><p class="label">predicted_ltv:</p></td>
197
+ <td>
198
+ <input type="text" name="std_event[predicted_ltv]" value="<?php esc_attr_e( $event['predicted_ltv'] ); ?>">
199
+ </td>
200
+ </tr>
201
+
202
  <tr class="CustomCode-visible">
203
  <td class="legend">
204
  <p class="label" style="line-height: inherit;"><?php _e( 'Custom event code (advanced users only):', 'pys' ); ?></p></td>
221
 
222
  <?php $param_id = uniqid() . $param; ?>
223
 
224
+ <tr class="class-<?php esc_attr_e( $param_id ); ?> ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">
225
  <td class="legend"><p class="label"><?php _e( 'Param name:', 'pys' ); ?></p></td>
226
  <td>
227
  <input type="text" name="std_event[custom_names][<?php esc_attr_e( $param ); ?>]"
229
  </td>
230
  </tr>
231
 
232
+ <tr class="class-<?php esc_attr_e( $param_id ); ?> ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">
233
  <td class="legend"><p class="label"><?php _e( 'Param value:', 'pys' ); ?></p></td>
234
  <td>
235
  <input type="text" name="std_event[custom_values][<?php esc_attr_e( $param ); ?>]"
237
  </td>
238
  </tr>
239
 
240
+ <tr class="class-<?php esc_attr_e( $param_id ); ?> tall ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">
241
  <td></td>
242
  <td><a href="#" class="remove-param"
243
  data-id="<?php esc_attr_e( $param_id ); ?>">Remove param</a></td>
247
 
248
  <tr id="marker"></tr>
249
 
250
+ <tr class="ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">
251
  <td class="legend"></td>
252
  <td>
253
  <a href="#"
350
 
351
  var id = makeid();
352
 
353
+ var html = '<tr class="class-' + id + ' ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">';
354
  html += '<td class="legend"><p class="label">' + l10n_param_name + '</p></td>';
355
  html += '<td><input type="text" name="std_event[custom_names][' + id + ']" value=""></td>';
356
  html += '</tr>';
357
 
358
+ html += '<tr class="class-' + id + ' ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">';
359
  html += '<td class="legend"><p class="label">' + l10n_param_value + '</p></td>';
360
  html += '<td><input type="text" name="std_event[custom_values][' + id + ']" value=""></td>';
361
  html += '</tr>';
362
 
363
+ html += '<tr class="class-' + id + ' tall ViewContent-visible Search-visible AddToCart-visible AddToWishlist-visible InitiateCheckout-visible AddPaymentInfo-visible Purchase-visible Lead-visible CompleteRegistration-visible CustomEvent-visible Subscribe-visible CustomizeProduct-visible FindLocation-visible StartTrial-visible SubmitApplication-visible Schedule-visible Contact-visible Donate-visible">';
364
  html += '<td></td>';
365
  html += '<td><a href="#" class="remove-param" data-id="' + id + '">' + l10n_param_remove + '</a></td>';
366
  html += '</tr>';
inc/common.php CHANGED
@@ -195,6 +195,15 @@ if( !function_exists( 'pys_event_types_select_options' ) ) {
195
  <option <?php selected( 'Lead', $current ); ?> value="Lead">Lead</option>
196
  <option <?php selected( 'CompleteRegistration', $current ); ?> value="CompleteRegistration">CompleteRegistration</option>
197
 
 
 
 
 
 
 
 
 
 
198
  <?php if ( $full ) : ?>
199
 
200
  <option disabled></option>
@@ -1140,7 +1149,16 @@ if( ! function_exists( 'pys_is_standard_event' ) ) {
1140
  'InitiateCheckout',
1141
  'AddPaymentInfo',
1142
  'Purchase',
1143
- 'Lead'
 
 
 
 
 
 
 
 
 
1144
  );
1145
 
1146
  return in_array( $eventtype, $std_events );
195
  <option <?php selected( 'Lead', $current ); ?> value="Lead">Lead</option>
196
  <option <?php selected( 'CompleteRegistration', $current ); ?> value="CompleteRegistration">CompleteRegistration</option>
197
 
198
+ <option <?php selected( 'Subscribe', $current ); ?> value="Subscribe">Subscribe</option>
199
+ <option <?php selected( 'CustomizeProduct', $current ); ?> value="CustomizeProduct">CustomizeProduct</option>
200
+ <option <?php selected( 'FindLocation', $current ); ?> value="FindLocation">FindLocation</option>
201
+ <option <?php selected( 'StartTrial', $current ); ?> value="StartTrial">StartTrial</option>
202
+ <option <?php selected( 'SubmitApplication', $current ); ?> value="SubmitApplication">SubmitApplication</option>
203
+ <option <?php selected( 'Schedule', $current ); ?> value="Schedule">Schedule</option>
204
+ <option <?php selected( 'Contact', $current ); ?> value="Contact">Contact</option>
205
+ <option <?php selected( 'Donate', $current ); ?> value="Donate">Donate</option>
206
+
207
  <?php if ( $full ) : ?>
208
 
209
  <option disabled></option>
1149
  'InitiateCheckout',
1150
  'AddPaymentInfo',
1151
  'Purchase',
1152
+ 'Lead',
1153
+ 'CompleteRegistration',
1154
+ 'Subscribe',
1155
+ 'CustomizeProduct',
1156
+ 'FindLocation',
1157
+ 'StartTrial',
1158
+ 'SubmitApplication',
1159
+ 'Schedule',
1160
+ 'Contact',
1161
+ 'Donate',
1162
  );
1163
 
1164
  return in_array( $eventtype, $std_events );
inc/core.php CHANGED
@@ -102,6 +102,10 @@ if ( ! function_exists( 'pys_get_woo_code' ) ) {
102
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
103
 
104
  $product = wc_get_product( $post->ID );
 
 
 
 
105
 
106
  $content_id = pys_get_product_content_id( $post->ID );
107
  $params['content_ids'] = json_encode( $content_id );
102
  if ( pys_get_option( 'woo', 'on_view_content' ) && is_product() ) {
103
 
104
  $product = wc_get_product( $post->ID );
105
+
106
+ if ( ! $product ) {
107
+ return;
108
+ }
109
 
110
  $content_id = pys_get_product_content_id( $post->ID );
111
  $params['content_ids'] = json_encode( $content_id );
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.3.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -307,6 +307,11 @@ We have an article about how to create Custom Reports:
307
 
308
  == Changelog ==
309
 
 
 
 
 
 
310
  = PixelYourSite 5.3.1 =
311
 
312
  * GDPR related update - we've implemented a dedicated filter to disable pixel tracking before consent: pys_disable_by_gdpr
4
  Requires at least: 3.0.1
5
  Requires PHP: 5.3
6
  Tested up to: 4.9
7
+ Stable tag: 5.3.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
307
 
308
  == Changelog ==
309
 
310
+ = PixelYourSite 5.3.2 =
311
+
312
+ * Facebook Pixel Standard Events updated to include the new ones that Facebook released. <a href="https://www.pixelyoursite.com/new-facebook-pixel-standard-events" target="_blank"> Details here</a>
313
+
314
+
315
  = PixelYourSite 5.3.1 =
316
 
317
  * GDPR related update - we've implemented a dedicated filter to disable pixel tracking before consent: pys_disable_by_gdpr