If you self host Matomo, you can block the usage of any tag, trigger, or variable through your “config/config.ini.php” file like this:

[TagManager]
disable_tags[] = “CustomImage”
disable_triggers[] = “DataLayer”
disable_variables[] = “DomElement”
disable_variables[] = “Cookie”
Previous FAQ: How do I block custom templates that let Matomo admins run JavaScript on the website like “Custom HTML” or “Custom JS Function”?