• Resolved Valdinia

    (@valdinia)


    I added all the scripts (for instance Google Analytics script) that I would like to be inserted to the HEAD / FOOTER section of our pages when user accepts these cookies.
    How are we going to manage (accept/reject) the cookies set (in PHP code) by the different plugins we are using?

Viewing 1 replies (of 1 total)
  • Plugin Author Moove Agency

    (@mooveagency)

    Hi @valdinia,

    Thanks for using our plugins.

    The scripts loaded by third party plugins should be added to GDPR Cookie Compliance plugin and the third party plugin should be disabled. If you have conditional script implementation in your PHP files, you can use the PHP functions to check the cookies:

    if ( function_exists( 'gdpr_cookie_is_accepted' ) ) {
      /* supported types: 'strict', 'thirdparty', 'advanced' */
      if ( gdpr_cookie_is_accepted( 'thirdparty' ) ) {
        echo "GDPR third party ENABLED content";
      } else {
        echo "GDPR third party RESTRICTED content";
      }
    }

    We have implemented several hooks & functions to determine which cookies are used, so you can find these in the Admin -> GDPR Cookie Compliance -> Help, Hooks, Filters & Shortcodes section.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Accept/reject cookies set by plugins’ is closed to new replies.