How to make Matomo's tracking work with AJAX calls

We would like to track the visitor behaviour on our website when visitors are using the filters and search feature on a Toolset View block (Wordpress Toolset plugin). If visitors use the filters or search, the URL parameters are added to the URL, but since this is done through AJAX and without page reload, it is not tracked in matomo.
Does Matomo offer any re-initialization script function which triggers the tracking after a certain AJAX event has been completed? Or do you see any other solution?
Thank you very much for your kind assistance.

Hi @werderbremen
If you want to track new “page view” in a single page application, please follow:
https://developer.matomo.org/guides/spa-tracking

Or else if you just want to track an event (filtering is a kind of event), just send events to Matomo…