• Resolved Jukka6000

    (@jukkalammi)


    Hi,

    For other GDPR-plugins there seem to be a easy solution to block Facebook for Woocommerce loading the script before user has given their consent. Usually the solution is simple like:

    `add_action( ‘wp_enqueue_scripts’, ‘wc_cookie_consent’ );

    function wc_cookie_consent () {
    // DISABLE FB PIXEL
    add_filter(‘pys_disable_by_gdpr’, ‘__return_true’);
    if ( function_exists(‘cn_cookies_accepted’) && cn_cookies_accepted() ) {
    add_filter(‘pys_disable_by_gdpr’, ‘__return_false’);
    }
    }`

    Is there one for CookieYes?

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @jukkalammi,

    Our free version plugin does not have an integration with Facebook for Woocommerce . However, you can checkout out the premium plugin which supports it out of the box.

Viewing 1 replies (of 1 total)

The topic ‘Block Facebook for Woocommerce script before consent’ is closed to new replies.