• Resolved impulsatumarketing

    (@impulsatumarketing)


    Hi everyone, how are you?

    I’d need some help with a “issue” I have with the _fbp cookie created by the Facebook for Woocommerce plugin.

    I have this plugin enabled with its settings to synchronize my woocommerce shop with facebook.

    Reading this thread, I’ve inserted the snippet you have in yor doc section, but It doesn’t work.. at least for me, The facebook pixel is activated even if user rejected or don’t accept cookies

    add_filter('facebook_for_woocommerce_integration_pixel_enabled', 'gdpr_cookie_facebook_wc', 20);
    function gdpr_cookie_facebook_wc() {
      $enable_fb_wc = true;
      if ( function_exists( 'gdpr_cookie_is_accepted' ) ) :
      $enable_fb_wc = gdpr_cookie_is_accepted( 'thirdparty' );
      endif;
      return $enable_fb_wc;
    }
    add_action( 'gdpr_force_reload', '__return_true' );

    I’d like to know if this hook works for Facebook for woocommerce plugin as well as for the WooCommerce Facebook Pixel plugin. Are they the same plugin?

    Besides I have a thread open in the Facebook for woocomerce support forum, and they have given me this snippet which makes that the _fbp cookie doesn’t load not before nor after the user has given his consent.

    This snippet prevents the Facebook pixel from loading.

    add_filter( ‘facebook_for_woocommerce_integration_pixel_enabled’, ‘__return_false’ );

    With this snippet activated The facebook pixel doesn’t get activated when user accepts cookies

    I’ve Checked that the site doesn’t have any javacript errors and that there is no another plugin that inserts the FB pixel automatically but the one I mentioned “Facebook for Woocommerce”.

    Thank you for your help

    Regards

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How to block Facebook for WooCommerce _fbp cookie’ is closed to new replies.