Title: Script blocking and reject button operation
Last modified: October 22, 2020

---

# Script blocking and reject button operation

 *  Resolved [ozonia](https://wordpress.org/support/users/ozonia/)
 * (@ozonia)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-blocking-and-reject-button-operation/)
 * Hi again!
    We have installed your free plugin on one of our websites. Thanks 
   for the collaboration.
 * We want to inform you that, to our knowledge, the operation is not correct. I
   try to explain myself, in case the configuration of the plugin was not correct
   on our part.
 * The website has the Google Analytics script embedded in the corresponding plugin
   section called “Script blocker”. See attached image: [https://bit.ly/34gkzka](https://bit.ly/34gkzka).
 * We understand that according to the notice and the description of the plugin,
   only the necessary and technical cookies should be loaded ([https://bit.ly/31vWhky](https://bit.ly/31vWhky)),
   which in this case are the 2 cookies that the plugin itself has (wpl_viewed_cookie
   and wpl_user_preference) and this is not really what happens, anymore that the
   Google analytical cookies that we wanted to block are also loaded ([https://bit.ly/31x1XKX](https://bit.ly/31x1XKX))
   until the user gave their approval ([https://bit.ly/3ofJhcj](https://bit.ly/3ofJhcj)).
 * On the other hand and if it were the case, since the user had accepted, for example,
   the analytical cookies after enabling them in the section and pressing the “Save
   and Accept” button, and these will be installed, when the user, if applicable,
   If you press the “Reject Cookies” button, we understand that the correct behavior
   should be for the plugin to force the deletion of such cookies and prevent their
   storage until the user gives their consent again.
 * In our case, in the meantime, we are forced to remove the Google Analytics code
   from the script blocking section of the plugin to prevent cookies from being 
   installed without prior consent.
 * We are waiting for your news, since here in Spain, it is mandatory to comply 
   with this regulation as of October 30, since the risk of non-compliance entails
   important economic sanctions.
 * Thank you very much!
    -  This topic was modified 5 years, 7 months ago by [ozonia](https://wordpress.org/support/users/ozonia/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscript-blocking-and-reject-button-operation%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WPeka](https://wordpress.org/support/users/wpeka-club/)
 * (@wpeka-club)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-blocking-and-reject-button-operation/#post-13585329)
 * Hi,
 * Thanks for contacting us.
 * We have re-tested the plugin functionality for script blocker on our test server,
   and found to be working fine.
 * Could you please raise a support ticket with us, so that we can help you with
   the issues you are facing on your website.
 * Thanks
    Dhananjay M.
 *  [mariaamieva](https://wordpress.org/support/users/mariaamieva/)
 * (@mariaamieva)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-blocking-and-reject-button-operation/#post-13594737)
 * Hi.
 * I’m from Spain and I have the same problem.
 * If the user only accept the marketing cookies the plugin install all the cookies.
   I think that can happen because to put the scripts that you want to block there
   is no separation by cookies if not where you have to place said script, so when
   pressing accept loads everything.
 * Regards
 *  Plugin Author [WPeka](https://wordpress.org/support/users/wpeka-club/)
 * (@wpeka-club)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/script-blocking-and-reject-button-operation/#post-13594759)
 * Hi,
 * Sorry for the inconvenience.
 * The script blocker functionality available in the Free version, only works on
   the Accept and Reject buttons.
 * In this case you would need to integrate the functionality to block the non-necessary
   category cookies via event handling. You could refer to our documentation for
   further information – [https://docs.wpeka.com/wp-gdpr-cookie-consent/event-handling-and-examples](https://docs.wpeka.com/wp-gdpr-cookie-consent/event-handling-and-examples).
 * Also, you could block the known domain scripts via using Advanced script blocker
   functionality available in the Pro version, where the plugin blocks the well-
   known domain scripts as per their category specified within the plugin settings.
 * Let me know if I have missed something.
 * Thanks
    Dhananjay M.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Script blocking and reject button operation’ is closed to new replies.

 * ![](https://ps.w.org/gdpr-cookie-consent/assets/icon-256x256.png?rev=3344977)
 * [Cookie Banner for GDPR / CCPA - WPLP Cookie Consent](https://wordpress.org/plugins/gdpr-cookie-consent/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gdpr-cookie-consent/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gdpr-cookie-consent/)
 * [Active Topics](https://wordpress.org/support/plugin/gdpr-cookie-consent/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gdpr-cookie-consent/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gdpr-cookie-consent/reviews/)

## Tags

 * [reject button](https://wordpress.org/support/topic-tag/reject-button/)
 * [script](https://wordpress.org/support/topic-tag/script/)
 * [script blocking](https://wordpress.org/support/topic-tag/script-blocking/)

 * 3 replies
 * 3 participants
 * Last reply from: [WPeka](https://wordpress.org/support/users/wpeka-club/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/script-blocking-and-reject-button-operation/#post-13594759)
 * Status: resolved