Integrate Matomo with instantsearch.js

I am using Matomo ( for tracking site search. However I do not know how to configure the “analytics” widget as the Algolia documentation does not give an example for Matomo ( Would be happy if the Algolia team could add a Matomo example or someone from the community already solved this and is happy to provide a code snippet.

Here is my (work-in-progress) application:

Found the solution myself. This code does the job:{
    pushFunction(formattedParameters, state, results) {
      /*  help needed: add code for Matomo  (*/
        window.location.pathname +,

@michael.rustler Thank you for this. :+1:t4: