Console Logging Blocked Scripts/Cookies

How can I see what has been blocked on a specific page of my site?

If you would like to see what has been blocked on a particular page of your site, you can do so by adding the following event listeners and console logging immediately after loading the Osano CMP."osano-cm-cookie-blocked", function (item) {
console.log("Cookie blocked: " + item);
});"osano-cm-script-blocked", function (item) {
console.log("Script blocked: " + item);

Once the CMP has initialized, the console will log all scripts and cookies that have been blocked on that particular page.