If you don’t want to use the Matomo Tag Manager and prefer to disable it, you need to add below code to your wp-config.php file:

define('MATOMO_ENABLE_TAG_MANAGER', false);
Previous FAQ: How do I use the API in Matomo for WordPress?