• LogoLogics

    (@logologics)


    Hi,

    What exactly is this for and how/where should we use it please?

    USAGE:
    If you’d like to code a functionality depending on the cookie notice value use the function below:

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

    To get the cookie notification status, use the cn_cookies_accepted () function.

    Thanks,
    Annie

Viewing 2 replies - 1 through 2 (of 2 total)
  • studiostilla

    (@studiostilla)

    Hi! I could really use some help with this, please. Could you give an example script for Google Analytics? Or even for Cookie Notice 😉

    I’m sorry, I’m not a web developer, so I could really use step-by-step instructions: an example script and a note where to put it.

    I’ve been searching the topics & documentation without luck.. Any help will be much appreciated!

    petervanzomeren

    (@petervanzomeren)

    Anyone?
    I first kept it in and put my tracking codes in the brackets { }, but after accepting/refusing the banner, the banner displayed that same code “if ( function_exists(‘cn_cookies_accepted’) && cn_cookies_accepted() )”.

    Now I deleted that code from the block and just pasted my tracking codes into the block. Seems to work.. for now.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘What is cn_cookies_accepted () function?’ is closed to new replies.