Issue with tracking No Result Search Keywords

Hi,

One of our application that is integrated with Piwik is mainly used as a search engine. Hence, it is very important for us to get the exact number of times a keyword has been searched or the number of times it has produced no results.

How can I get the number of searches for a keyword/the number of times a keyword has produced no results despite if it is from a single visit or not?

We also observed that No Result Search Keywords is listing the keywords which have the search results as well.

We have used the below code.
_paq.push([‘setCustomUrl’, document.URL + ‘&search_count=’ + searchCount]);

I’ve raised this issue again in a ticket to Matomo.
In my case, the problem occurs when a website offers multiple languages ​​and the search only searches in those language areas.
If keywords are searched for in multiple languages ​​and there are language areas with no results, this problem occurs.