Title: block amazon affiliate cookie?
Last modified: May 25, 2018

---

# block amazon affiliate cookie?

 *  [ijbo](https://wordpress.org/support/users/ijbo/)
 * (@ijbo)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/block-amazon-affiliate-cookie/)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/eu-cookie-law_39293e.svg)
 * [EU Cookie Law for GDPR/CCPA](https://wordpress.org/plugins/eu-cookie-law/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eu-cookie-law/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eu-cookie-law/)
 * [Active Topics](https://wordpress.org/support/plugin/eu-cookie-law/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eu-cookie-law/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eu-cookie-law/reviews/)

## Tags

 * [block](https://wordpress.org/support/topic-tag/block/)
 * [cookie](https://wordpress.org/support/topic-tag/cookie/)

 * 0 replies
 * 1 participant
 * Last reply from: [ijbo](https://wordpress.org/support/users/ijbo/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/block-amazon-affiliate-cookie/)
 * Status: not resolved