Delayed events injection
-
Hi,
I might be doing something wrong, but I think there is a bug in the plugin. I had an issue with one client as the events were not firing correctly.
I discovered that events are deferred in case redirect to cart after adding product to cart is on. This code is in facebook-commerce-pixel-event.php, function inject_event on line 287.
This is causing to fire AddToCart event correctly. However, other events like InitiateCheckout, ViewContent, Purchase,… are delayed until next pageload.
For example, InitiateCheckout is fired when order is placed, Purchase is fired on next pageload after order thank you page is shown,…I can see the same behaviour with other websites I manage.
Kind Regards,
Lubos
- The topic ‘Delayed events injection’ is closed to new replies.