Add possibility to rename metrics based on the type of the site #7824
Labels
c: Platform
For Matomo platform changes that aren't impacting any of our APIs but improve the core itself.
Enhancement
For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone
Needed for #7131 and #4734.
A "type" could be a plugin that defines a type "Website" or "MobileApp". For example while a type "Website" may use the wording "Visits and Visitors" another type "MobileApp" may want to use the wording "Users and Sessions".
Problems / Requirements
Possible solutions
Metrics
class https://github.com/piwik/piwik/blob/2.13.0-rc2/core/Metrics.php#L26 into many tiny classes and only access them via those classes. Metrics is marked as @api so BC might be an issue.getProcessedReport/getReportMetadata
but it would almost require that we render reports in the browser via JavaScript.To be considered
Visits by days since last Visit
. It would be nice if we could rename "Visit" and "Visits" once and it would be applied in all reports as well. This is part of Provide a way for a type to rename any report and to disable/enable reports #7823 but I wanted to have it mentioned here as well.getReportMetadata($idSites)
. In this case we might need to fallback to generic wording and do not apply the rename (or we apply a generic rename on top). We might deprecate$idSites
in the future.Out of scope
nb_visits
would not becomenb_sessions
.The text was updated successfully, but these errors were encountered: