• Resolved kjy112

    (@kjy112)


    Hello, is there an action / hook that we can use to disable FB Pixel output from this plugin? We have a certain GET param that potentially violates FB marketing policies that we need to not send to FB through this plugin’s FB pixel. Can someone help please or point us to a documentation to filter FB pixel output? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Disabling Facebook pixel is possible, you can refer to this documentation below:

    https://woocommerce.com/document/facebook-for-woocommerce/#section-48

    Please note that we provide no warranty or support for custom code or 3rd party plugins (We are limited by our support policy). Please note, use the code at your own risk.

    Remember to back up the site before making any change.

    Best.

    Thread Starter kjy112

    (@kjy112)

    Hi, I tried this filter based on the link you sent, but FB for WooCommerce still generates the FB pixel. I even placed the add_filter code on top of functions.php and plugin still generates pixel throughout the website. When I disable the plugin, then pixel no longer generated. So I am thinking this filter doesn’t work anymore?

    Thread Starter kjy112

    (@kjy112)

    I ended up using unset plugin and place in mu-plugins to disable this plugin.

    Hello,

    You can use the following code snippet (It is from the documentation link above):

    add_filter( 'facebook_for_woocommerce_integration_pixel_enabled', '__return_false' );

    You can add that snippet using a plugin e.g. Code Snippets, you will not need to edit your functions.php file in this case since you are using a plugin.

    Does it work this way? Let us know.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Action / Hook for disable output of FB Pixel from this plugin?’ is closed to new replies.