Support » Plugin: GDPR Cookie Compliance » Official WooCommerce Facebook Pixel Plugin

  • Resolved Stefan Smiljkovic

    (@kinderjaje)


    Hi guys, great plugin.

    One thing is really missing.

    Do you have solution for Facebook Official plugin for WooCommerce and FB Pixel https://github.com/facebookincubator/facebook-for-woocommerce?

    This plugin help us in lot of stuff regarding Facebook, so its not good to remove it and add manually in GDPR plugin.

    Is there a way to make it automatically disable when users disable in GDPR modal ?

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

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi there,

    Sorry for the late reply on this. Thanks for using our plugins.

    Please update the plugin to the latest (1.3.0) version, we’ve implemented PHP cookie checking functions like:

    gdpr_cookie_is_accepted( 'strict' )
    gdpr_cookie_is_accepted( 'thirdparty' )
    gdpr_cookie_is_accepted( 'advanced' )

    So using the functions above, you can disable the Facebook plugin for WooCommerce using the following codesnippet:

    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' );

    Edit: Don’t forget to enable the force_reload once the code snippet is added (gdpr_force_reload hook from the snippet above)!

    I hope this helps.

    • This reply was modified 7 months, 1 week ago by  Moove Agency.
Viewing 1 replies (of 1 total)
  • The topic ‘Official WooCommerce Facebook Pixel Plugin’ is closed to new replies.