Add possibility to customize icon of events per event category #22135
Labels
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
To Triage
An issue awaiting triage by a Matomo core team member
It would be great if matomo could offer a way to control the icons displayed in the event view per event category, such that the occurrence of a specific event category type can be quickly identified. To make this possible for the general event view in Dashboard > Dashboard and Visitor > Visitor Log would be really neat.
Summary
I've currently tried to implement that using a custom javascript functionality added via custom plugin / theme on our on-premise instance, on which, what I do, basically is, to reach what I want in the Dashboard > Dashboard View:
document.querySelectorAll('img.iconPadding')
title
attribute holds the stringerror
(which is our event category forerror
events)src
attribute with the link to the error icon in our custom theme / pluginThis works, but the problem is that the entire view under Dashboard > Dashboard is refreshed periodically with every new incoming (polling?) request of the newly incoming events, and this also seems to re-build the entire markup. We've also tried to do as mentioned using stuff like
setInterval
in JS to repeat the task every x seconds, but it's of course not ideal as the icons keep switching back and fourth. So we wondered if there's not a way to map a specific event icon to an according event category, such that markup generated will be adapted accordingly?Your Environment
On-Premise Installation
The text was updated successfully, but these errors were encountered: