Support Forum Support Forum GDPR Cookie Compliance Facebook Pixel Cookie loading before Consent

Topic Resolution: Resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Avatarcharlie04
    July 15, 2020 @ 7:10 am

    Hello,

    we are using your plugin and it’s really great, but one thing is not correct. The facebook pixel is loading upfront the consent. Please see screen of browser console:
    https://drive.google.com/file/d/1FQ3EA91YZ3wCMZHzc7SLL0d49o4yyBHv/view?usp=sharing

    To include the fb pixel to our WooCommerce site, we are using the Plugin “Facebook for WooCommerce” (https://docs.woocommerce.com/document/facebook-for-woocommerce/)
    Maybe there is in issue with that?

    Hope you can help us 🙂
    Best,
    Charlie

    Moove AgencyMoove Agency
    July 28, 2020 @ 8:12 am

    Hi Charlie,

    Thanks for using our plugins.

    We have a hook to make the “Facebook for WooCommerce” GDPR compliant, the hook is part of our Help section.
    You can add to your functions.php:

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

    Hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.