blacklistUrls not working

I have a 3rd party script on my site that I’m trying to blacklist and I can’t seem to get it work using a regexp

  blacklistUrls: [
   new RegExp(/(http[s]?:\/\/)?[^\s(["<,>]*\.tawk\.[^\s(["<,>]*/, 'g')

with an error of

description: {
isTrusted: True
type: TransportError

the regexp match all url that contain but I’m still getting errors logged.

1 Like

Having the same issue with but with GTM URLs. I have:

	blacklistUrls: [
		// GTM/GA

But still receiving events of errors inside GTM.js: