How to modify 'ignoreNoDataMessage'?

We have some imported GA Data sites, where we will have a look for data, but will not record any new data anymore. Without active tracking, we get the NoDataMessage every time. We can deactivate this for 1 hour, but a longer period of time or general deactivation of this message would be helpful.

After a lot of research, I came across the IgnoreNoDataMessage function. Hence, my question:
How can I modify the function ignoreNoDataMessages in matomo/plugins/SitesManager/Controller.php so that it is not overwritten during updates?

Here’s the definition of the function:
public function ignoreNoDataMessage()
$session = new Session\SessionNamespace(‘siteWithoutData’);
$session->ignoreMessage = true;
$session->setExpirationSeconds($oneHour = 60 * 60);
$url = Url::getCurrentUrlWithoutQueryString() . Url::getCurrentQueryStringWithParametersModified(array(‘module’ => ‘CoreHome’, ‘action’ => ‘index’));

Hi @Christoph_Kloss,

I suggest you create a feature request for you need at:

You can even create a PR for that…
Last solution: create your own plugin (but I think this will be too much work for your need):