• Resolved Ced

    (@cedriccharles)


    Hello there ??

    Frist of all, thank you for your plugin.
    I need to install LiteSPeed on a new website that uses this plugin for cookie bar: Cookie Notice for GDPR & CCPA https://www.ads-software.com/plugins/cookie-notice/

    It uses PHP to check of cookies ave been accepted :

    if ( function_exists('cn_cookies_accepted') && cn_cookies_accepted() ) {
        // Your third-party non functional code here
    }

    If accepted, it loads the scripts that I’ve put in the if statement (Facebook pixel and Google Analytics).

    Of course, I need this cookie bar to be displayed for each users. Could you guide me please?

    Thank you,
    Cedric

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support usabe

    (@usabe)

    Hi, Cedric,

    Please refer to this link: https://docs.litespeedtech.com/lscache/lscwp/troubleshoot/#eu-cookie-consent

    Just remember to change the cookie name to corresponding one from the Cookie Notice plugin.

    Best regards

    Thread Starter Ced

    (@cedriccharles)

    Hi usabe,

    Thank you for your answer.

    Will this work as after the cookie is set, they use PHP functions in the header.php file in order to inject non-functional scripts?

    Kind regards,
    Cedric

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    when you added that rewrite rule for vary

    then there will be 2 caches for each page

    1 cache without that accepted cookie

    1 cache with that accepted cookie

    then you can use whatever code you want to use , and server will judge which cache to use based on user’s cookie value

    Best regards,

    Thread Starter Ced

    (@cedriccharles)

    Ok thank you ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cookie Notice for GDPR & CCPA’ is closed to new replies.