Install the Facebook pixel without global website slowdown.

WordPress Mobile Speed

Updated


There are no affiliate links on PagePipe.

I cannot install the Facebook pixel without my website slowing down. Do you have any advice on a plugin that will load it after the website has loaded?

This would be called “Lazy loading the Facebook pixel.” Or “deferral” of load.

First ask yourself before you go down this merry path, “Do I really need the Facebook tracking or metrics to make money?”

One way is to edit the header, copy the Facebook pixel code and paste it in the footer. That is fine if looking at code doesn’t frighten you. Use the WordPress plugin Insert Headers and Footers. Be careful when moving or deferring code as you can easily break your site!

This procedure is explained at this blog:
https://coraldigital.io/google/increase-page-speed-defer-facebook-pixel/

https://stackoverflow.com/questions/59835795/facebook-pixel-slows-down-page-load-time-by-almost-a-full-second

https://www.shaytoder.com/improving-page-speed-when-using-facebook-pixel/

https://www.samfrost.co.nz/blog/does-a-facebook-pixel-slow-down-a-website

https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/loading-third-party-javascript

https://josephpinder.com/blog/facebook-pixel-is-slowing-down-your-website-and-how-to-fix-it-securely

Godspeed-

Steve Teare
performance engineer
June 2021

 

PagePipe Site Tuning Services for Speed

Instead of band-aid approaches, we drill down to the root cause of your slow site. This is origin optimization. Also known as site tuning. To do this, we analyze site components:

  • Hosting
  • Theme
  • Plugins
  • Scripts and third-party services.
  • Images and media library.
  • We minimize globally loading plugin effects.

Find out more details about Site TuningGet Speed!