• Resolved devmvo

    (@devmvo)


    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)
  • Plugin Contributor Jarno Vos

    (@jarnovos)

    Hi @devmvo,

    You can add the Tawk script on your site as you would normally do, and then tell Complianz to block this script by using the “Block a script, iframe or plugin” field under Complianz -> Integrations -> Script Center.

    In the case of Tawk, you can enter Tawk_API as the “URL that should be blocked before consent”. You should end up with a configuration like this (screenshot).

    After which the Tawk script will only be loaded after accepting the banner.

    Kind regards, Jarno

Viewing 1 replies (of 1 total)

The topic ‘Blocking 3rd party scripts’ is closed to new replies.