I wanted to upgrade this PR, but since the beginning I have this #9492 It's hard to work with it :/
Moved to 3.0.0-b2 - @tsteur maybe you could review/maybe-merge this one?
@dhoko can you recreate this PR against the 3.x-dev branch? To not break anything we would not merge this into 2.x as Piwik 2 is in LTS mode.
Sorry guys for the delay :/
I don't work anymore with Piwik so It's not easy for me to fix/add somethig inside Piwik then test it.