Add custom route?

What should be the best practice to add a custom route to Matomo - like adding a /health endpoint?

The simple way is to proxy it with nginx, but I rather do it direct in Matomo.

You need to implement a plugin, exposing a Controller

https://developer.matomo.org/4.x/guides/controllers

1 Like