Allows custom icons and colours for pages in the real-time visitor log.
Replaces the rainbow of colourful folder icons in Matomo (Piwik)'s "Visitors in Real-time" widget with colourful folder icons that match user-defined url patterns.
Considered in early beta - not stable, but it hasn't broken anything yet.
If you decide to use it, here's some things you need to know:
{
"string to match": [ "match type", "colour" ],
"second string": [ "match type", "colour" ]
}
So, to colour all blog pages green and all docs pages red...
{
"/blog/": [ "*", "green.png" ],
"/docs/": [ "*", "red.png" ]
}
The match types are explained on the plugin settings page.
This syntax is subject to change - yet another reason why you probably shouldn't use this.
Should I Use This? Probably not, or at least, not yet.
It's very experimental, very clobbered together, and probably full of bugs. It doesn't sanitise input, writes directly to the filesystem, and probably has a bunch of security holes.
Eventually, this should evolve to the point where it is stable and easy to use, but right now you use it at your own risk. It shouldn't break anything, but I can't guarantee that.