Tag manager and track site search

Hi! Trying to register site search event using tag manager. But can’t find how this is possible? Do I really need to run both tag manager and JavaScript tracker _paw to be able to track this?

Running a custom SPA solution so query site search tracking does not work.

Any tips on how I can send / trigger site search by tag manager only?

The problem is that the automatic search event uses the query params of the page to detect the search…
The tag Manager either don’t manage Matomo search event, but probably will in a short time (Matomo 5?):

If you need this, you have to use HMTL tag that will do a _paq.push(['trackSiteSearch', 'keyword', 'optional category', 10]).