fbq is not defined | WordPress.org

[ad_1]

Hello,

I noticed that my mobile menu was not working on our thank you page. Upon further investigation, I noticed an error stating “fbq is not defined at autoptimize……” The code that returns an error is fbq('track','CompleteRegistration')

This is tied to the facebook pixel code. However, I had fully removed the pixel code form the header.php file awhile ago. I did not use a plugin to insert it.

I have cleared all caches and tried turning all plugins on/off, and verified that autoptimize is where the issue stems from. Unchecking “optimize JS for this page” resolves the issue with the menu, but the error still remains.

Why is the fbq code still showing up?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer