How to Block Custom Scripts With CookieYes Consent

Whenever you have chosen implicit, explicit or custom as your consent type, you will need to disable scripts/cookies on your site depending on the user consent. You may use the below script to render your script based on visitor consent with CookieYes banner. This script can be pasted into you base HTML file and add your custom script inside this wrapper as in the example.