Disable Facebook pixel
-
Hi I use pixel your site plugin. The developer said he has implemented a filter to disable Facebook pixel. I saw on their support forum using this code to disable Facebook pixel using another cookie plugin. Can something similar used with your plugin?
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'); } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Disable Facebook pixel’ is closed to new replies.