Back to Community

How to Disable the Facebook Pixel in Facebook for WooCommerce

30 threads Sep 21, 2025 PluginFacebook for woocommerce

Content

Many WooCommerce store owners use the 'Facebook for WooCommerce' plugin to sync products and manage their Facebook Shop. However, a common point of confusion arises when the plugin automatically injects the Facebook Pixel code, which can conflict with existing tracking setups managed through Google Tag Manager (GTM). This article explains why this happens and provides the definitive method to disable the pixel.

Why Does the Plugin Inject the Pixel?

The 'Facebook for WooCommerce' plugin is designed as an all-in-one solution. Its primary functions are to sync your product catalog and handle event tracking for Facebook Ads. The pixel is enabled by default because it's a core part of the plugin's event tracking and measurement capabilities. For users who rely solely on the plugin for their Facebook marketing, this automatic setup is convenient. However, for advanced users with a custom GTM container, this can lead to duplicate 'PageView' events and potential data inaccuracies.

How to Disable the Facebook Pixel

Fortunately, the plugin provides a built-in filter to disable the pixel output. It's important to understand that this will disable all browser-side event tracking from the plugin, including standard events like 'AddToCart' and 'Purchase'. This solution is ideal if you are handling all event tracking through GTM.

You can disable the pixel by adding the following code snippet to your theme's functions.php file or by using a code snippets plugin:

add_filter( 'facebook_for_woocommerce_integration_pixel_enabled', '__return_false' );

After adding this code, the plugin will no longer output any Facebook Pixel JavaScript code on your site's frontend.

Important Considerations and Limitations

  • Conversion API (CAPI): Based on user reports, using the filter above may also disable the Conversions API (CAPI) functionality. If your goal is to use the plugin only for CAPI while handling the pixel through GTM, this may not be a viable solution. The plugin's architecture currently tightly couples the pixel and CAPI features.
  • No Official Toggle: There is no graphical user interface (GUI) setting within the plugin's admin panel to toggle the pixel on or off. Disabling it requires adding custom code.
  • Testing: After implementing this change, thoroughly test your site. Use browser tools like Facebook Pixel Helper and your browser's console to confirm the plugin's pixel is no longer firing and that your GTM pixel is working correctly.

Conclusion

If duplicate pixel tracking is causing issues with your analytics, using the facebook_for_woocommerce_integration_pixel_enabled filter is the recommended way to disable the pixel injected by the 'Facebook for WooCommerce' plugin. Be aware that this is a blanket setting that affects all browser-based tracking from the plugin. For those requiring a more granular approach, such as disabling only the pixel while keeping CAPI active, this functionality is not currently supported and may require monitoring the plugin's GitHub repository for future updates.

Related Support Threads Support