How to get both event name and action for a given category in API?

Hi!

I’ve just started using Matomo and I’m trying to create a separate report web page for each event category, but I’m unsure how to get both the event name and action for a specific event category.

There’s Events.getActionFromCategoryId and Events.getNameFromCategoryId, but is there a way to combine the two such that I end up with an output along the lines of the following (or the inverse)?

Event Name A

  • Action 1
  • Action 2

Event Name B

  • Action 1
  • Action 2

Thanks!

Hi @grooves
You can’t, except if:

  • Either you develop your own plugin that will do this,
  • Or you install the Custom Reports premium plugin.

Hi Philippe,

Thanks for the clarification!