Support » Plugin: GDPR Cookie Compliance » Monster Insight Cookies

  • Resolved ggiovinazzo

    (@ggiovinazzo)


    Good morning I have installed your plugin and it is awesome.

    I have just a question:

    I placed the following code snippet under the head section of the third parties cookies:

    add_action( ‘init’, ‘toggle_monster_insights_based_on_moove’ );
    function toggle_monster_insights_based_on_moove() {
    if ( function_exists( gdpr_cookie_is_accepted ) && function_exists(‘monsterinsights_get_ua’)) {
    if ( gdpr_cookie_is_accepted(‘thirdparty’) ) {
    setCookie( ‘ga-disable-‘.monsterinsights_get_ua(), ‘false’ );
    } else {
    setCookie( ‘ga-disable-‘.monsterinsights_get_ua(), ‘true’ );
    }
    }
    }

    Do I have to use other code snippets or place the same snippet under other other sections to disable the monster insight cookies?

    Thanks for your precious help

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.