WP-Rocket : Delay JS/CS Causing Facebook Pixel Not To Load Properly

These particular setting, by nature it’s okay for other assets however for tracking purposes, the pixel or tag might fire later after the interaction.

This is not the best practise. Therefore, we need to exclude PixelYourSite (our preferred tracking plugin) from being optimized or delay.

Solution

After numerous attempt to exclude PYS from being optimized, it is not working until WP-Rocket assist us by excluding PYS from being Lazyload.

If you’re using Litespeed cache, PixelYourSite out of the box. No changes required.
P/S : Since I’m no longer using VPS and moving to managed WordPress, I’m no longer using WP Rocket and just stick with Litespeed.

Leave a Reply

Your email address will not be published. Required fields are marked *