Title: Script blocked field
Last modified: June 14, 2018

---

# Script blocked field

 *  [daphnevlo](https://wordpress.org/support/users/daphnevlo/)
 * (@daphnevlo)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/script-blocked-field/)
 * Hi there,
    At first I didn’t dare to ask this question, but now I see more people
   are asking about it. I understand the purpose of the script blocked field, but
   I don’t know what I have to put in there. I use the plug-ins Yoast SEO and Google
   Analytics Dashboard for WP, but how do I know what cookies they use and what 
   code I have to put in the field? I do not read anything in you documentation 
   about how to find the code that has to be blocked when cookies are rejected by
   the user… I understand every site is different, but maybe you can explain this
   a bit further? Thanks! Daphne

Viewing 1 replies (of 1 total)

 *  [Ambyomoron](https://wordpress.org/support/users/josiah-s-carberry/)
 * (@josiah-s-carberry)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/script-blocked-field/#post-10399707)
 * Take the example of the Google Analytics tracking cookie. You would put in that
   field the javascript that writes a cookie to the visitor’s device using your 
   tracking ID and, at the same time, sends to Google the fact that the visitor 
   visiting your site. When the visitor clicks on the button to not use 3rd party
   cookies, or simply fails to give an OK to the cookies, then that script is NOT
   executed. Thus, no information is sent to Google about the visitors visit to 
   your site.
    The key point is that the cookie plugin only knows how to enable 
   or disable the script that you save in the plugin configuration. If you also 
   have that script somewhere else in your site, the cookie plugin simply doesn’t
   know about it and has no effect on it. So, if you want the cookie notice plugin
   to work correctly, you must make sure that no other plugin is creating the Google
   Analytics cookie and sending info to Google. Now, if you want to find the code
   used to create and manage cookies for Google Analytics, then go to analytics.
   google.com, where you will find complete documentation and examples of scripts.
   You will also find examples on this forum. The same is true with any other tracking
   cookie. Go to the site of the company that uses that tracking data to learn how
   to create their cookies.

Viewing 1 replies (of 1 total)

The topic ‘Script blocked field’ is closed to new replies.

 * ![](https://ps.w.org/cookie-notice/assets/icon-256x256.png?rev=3549327)
 * [Compliance by Hu-manity.co](https://wordpress.org/plugins/cookie-notice/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-notice/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-notice/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-notice/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-notice/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-notice/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ambyomoron](https://wordpress.org/support/users/josiah-s-carberry/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/script-blocked-field/#post-10399707)
 * Status: not resolved