• 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]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Emre Vona

    (@emrevona)

    have you ever tried another cache plugin before? because the code may not be compatible with the cache plugins.

    Thread Starter mbdireccion

    (@mbdireccion)

    Thanks for your answer. No I haven′t as the best cache I′ve founded is yours. In fact, before finishing this year and after being sure that along theese months, your plugins continues working so well, I′ll purchase a premium license for more than a site.

    If you can give an idea bout how can I modify this snippet, It would be great.

    Thanks

    Plugin Author Emre Vona

    (@emrevona)

    did you try to exclude the cookie?

    Thread Starter mbdireccion

    (@mbdireccion)

    Thanks for your answer Emre. I am not sure about the answer to your question “did you try to exclude the cookie?” because I think that the function I sent to you did that work and I do not know any other way to do it.

    Thanks and I′ll wait for your answer.

    Plugin Author Emre Vona

    (@emrevona)

    the code does not work because a page is saved as a static html file when it is cached so PHP does not work.

    You may need to exclude a cookie. it is just driving the idea. Where did you find the code from? it is not your problem. The person who wrote the code needs to make this code work with caching plugins.

    Thread Starter mbdireccion

    (@mbdireccion)

    Emre, thanks a lot for such a professional answer. The code is from a wordpress thread from the owner team of the plugin “Facebook for Woocommerce”.

    I′m going to explain them the problem and ask them to give me the right code.

    Please, kkep this thread open for a couple of days else if a need anything else from you that could help.

    Thanks a lot again.
    (I think I am right about that this is the best cache plugin I′ve ever founded, for how it works and for the support)

    Plugin Author Emre Vona

    (@emrevona)

    thank you ??

    Thread Starter mbdireccion

    (@mbdireccion)

    Emre, goog morning. I′ve got a different question and do not know if would be better to open a new thread.
    Is is about the advice that sends me your plugin “Nginx is used inthe server so you need to enable the Gzip manually” I′ve pasted the code as it says in the link but the advice remains.

    Thanks

    Plugin Author Emre Vona

    (@emrevona)

    you need to contact your hosting provider.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘can not able Facebook pixel cookie’ is closed to new replies.