Title: Script blocking does not put script code in page on cookie acceptance
Last modified: December 5, 2019

---

# Script blocking does not put script code in page on cookie acceptance

 *  Resolved [jonsakas](https://wordpress.org/support/users/jonsakas/)
 * (@jonsakas)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/script-blocking-does-not-put-script-code-in-page-on-cookie-acceptance/)
 * Hello,
 * As I understand it the “Script blocking” section will load scripts placed in 
   these fields when a user accepts cookies. I am unfortunately not able to make
   this work properly.
 * As a test, I have added these scripts to the Head and Body:
 *     ```
       <script type="text/javascript">
       console.log("Head: Cookies have been accepted");
       </script>
       ```
   
 *     ```
       <script type="text/javascript">
       console.log("Body: Cookies have been accepted");
       </script>
       ```
   
 * However, when I accept the cookie neither of these are firing. Am I mis-understanding
   how this is supposed to work?

Viewing 1 replies (of 1 total)

 *  Thread Starter [jonsakas](https://wordpress.org/support/users/jonsakas/)
 * (@jonsakas)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/script-blocking-does-not-put-script-code-in-page-on-cookie-acceptance/#post-12232161)
 * I found that I need to have the “Enable to reload the page after cookies are 
   accepted.” option enabled for this to work.

Viewing 1 replies (of 1 total)

The topic ‘Script blocking does not put script code in page on cookie acceptance’
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
 * 1 participant
 * Last reply from: [jonsakas](https://wordpress.org/support/users/jonsakas/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/script-blocking-does-not-put-script-code-in-page-on-cookie-acceptance/#post-12232161)
 * Status: resolved