• I am using the Google Analytics script that a user provided in this forum to prevent that cookie from loading and it works like a charm. I also need amazon affiliate cookies from loading, is there a similar script that I could use?

    Analytics Code:
    function blockGA(){
    echo ‘<script>’;
    if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) {
    //cookies accepted
    } else {
    //cookies blocked
    echo “window[‘ga-disable-UA-XXXXX’] = true;”;
    }
    echo ‘</script>’;
    }
    add_action(‘wp_head’, ‘blockGA’, 0, 0);

The topic ‘block amazon affiliate cookie?’ is closed to new replies.