- Video links updated.
- New filter that lets developers get the Facebook CAPI event IDs.
Usage example:
add_filter(“pys_before_send_fb_server_event”,”pys_test”,10,3);
function pys_test($event,$pixelId,$eventId) {
error_log(“Send event for pixel $pixelId id = $eventId”);
return $event;
}
It is called before the event is sent to the FB server
3 parameters:
– the first one is the event object with all the data
– the second is the pixel id
– and the third is the event id, rendered it separately
You need to take into account that our events are mainly sent via Ajax after the page has loaded.
- WooCommerce 6.4 compatibility.