can not able Facebook pixel cookie
-
Hi, I have set a function that disable Facebook pixel cookie until users consent but while your plugin is active, the cookie keeps disabled although the user accepts consent but if your plugin is not acive, the user accepts consent and the script works.
This is the script, if this can help:
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′ll wait for your answer. Thanks
The page I need help with: [log in to see the link]
- The topic ‘can not able Facebook pixel cookie’ is closed to new replies.