How to Exclude CookieYes Script from WP Rocket Plugin
Last updated on June 2, 2025
On this page
Steps to exclude CookieYes script from the WP Rocket plugin



To exclude scripts from CookieYes, enter client_data/(.*)/script.js. This excludes any JavaScript file from CookieYes from being optimized by the WP Rocket plugin.
To exclude scripts related to GCM (if the option for Google Consent Mode is enabled in the CookieYes plugin),enter cookie-law-info and _ckyGcm.
Ensure that you add these scripts in all relevant fields where exclusions are required.

This will exclude any JavaScript file from CookieYes from being optimised by the WP Rocket plugin.
Step 5: Click the SAVE CHANGES button to save the changes made, and then clear the cache of your website to reflect the update. After completing these steps, the cookie banner should no longer be empty or show errors.
If you are still facing any issues or have any questions, please contact support.