Blocking 3rd party scripts
-
Hello, I'm trying to remove tawk chat and Mailerlite pop-up which is fired without consent. 1. I added both into Cookiedatabase.org - Cookie descriptions from Wizard. 2. I tried to add a script into Script Center for Tawk.to: document.addEventListener('DOMContentLoaded', function() { var scripts = Array.from(document.getElementsByTagName('script')); scripts.forEach(function(script) { if (script.src.includes('embed.tawk.to')) { script.type = 'text/plain'; } }); }); But it doesn't work. Hopefully you will be able to see my mistakes. Premium subscription NOTE: writing a message directly from WordPress is not sent.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Blocking 3rd party scripts’ is closed to new replies.