Call Us:  07  3040  3050

Facebook Pixel May Be Making Your Website 1.3 to 1.5 Seconds Slower

This article shows you how having the Facebook Pixel in your website may be making your website slower, and what to do to fix the problem.

I understand the importance of having a fast website, not only for SEO purposes, but mainly to provide a great user experience for visitors.

Before Facebook Pixel

After adding the Facebook Pixel to 8webdesign.com.au I noticed an immediate increase in the loading time of the website, so I immediately removed it and started testing.

This is the website speed results taken at https://tools.pingdom.com before adding the Facebook Pixel.

This shows the website was loading under 1 second.

Pingdom is my favourite speed testing tool because you can select Sydney to run the test from.

Another good option to test speed is https://gtmetrix.com. If you want to use this one, make sure you create a free account to be able to select the location to test from.

I’ve found that Pingdom gives more consistent results than GT Metrix, but that may be just me, so it’s not a bad idea to test using both, or other you may know.

Adding Pixel using a WordPress Plugin

Then, I added the code by using the official Facebook plugin for WordPress.

After testing the speed of the website again, I confirmed my worst fear… my website went from 0.788 seconds to 2.12 seconds.

It’s our natural instinct to point fingers at someone (or something) when things go wrong, and that’s exactly what I did; I blamed the plugin.

Adding the Pixel Manually

I went to https://business.facebook.com/ and opened Events Manager to find the Facebook Pixel code and add it manually to the website.

When you install a plugin in your website, you don’t know what other code gets added to the site, so I was expecting the website to load faster after this change, here are the results.

To my surprise and disappointment, it made the website slower.

Kudos to Facebook for providing a plugin that doesn’t affect the speed of the site more that it should.

Fortunately, I had one more trick under my sleeve to make this work, otherwise I would have chosen Speed over having the Facebook Pixel, considering I was not running Facebook Ads at the time.

Using Google Tag Manager

Google Tag Manager (GTM) is a great way to insert scripts like Facebook Pixel or Google Analytics to a website.

First, I added GTM to the website, and it didn’t cause any delays on the speed.

To then add the Facebook Pixel. These were the speed test results.

Having a fast website, means that you can afford adding features to your website, even when it makes it a few milliseconds slower.

Conclusion

Measure speed before and after adding the Facebook Pixel to your website. If you add it via GTM the impact on the speed will be minimal, while if you add it via the Official Facebook plugin or manually, you’ll be hit with over 1 second of load time. At least that was my experience.

Comment

Leave a Reply

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