Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKate Butler <kate@innocraft.com>2019-12-17 00:15:11 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-12-17 00:15:11 +0300
commit72eece3fbbb9df81f941a4cdbe83a928679daa18 (patch)
tree7d6e7c0cc0f81512891de2ab691a5c07cfdab45b /core/Archive.php
parent76102d2c9b21cd7317ed9d4e6ea7879f83b01474 (diff)
Show 'new' metrics on visitor engagement report/sparklines (#15128)
Diffstat (limited to 'core/Archive.php')
-rw-r--r--core/Archive.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Archive.php b/core/Archive.php
index 3bf6d5b187..e3e3ddf0b9 100644
--- a/core/Archive.php
+++ b/core/Archive.php
@@ -831,7 +831,10 @@ class Archive implements ArchiveQuery
} // Goal_* metrics are processed by the Goals plugin (HACK)
elseif (strpos($report, 'Goal_') === 0) {
$report = 'Goals_Metrics';
- } elseif (strrpos($report, '_returning') === strlen($report) - strlen('_returning')) { // HACK
+ } elseif (
+ strrpos($report, '_returning') === strlen($report) - strlen('_returning') ||
+ strrpos($report, '_new') === strlen($report) - strlen('_new')
+ ) { // HACK
$report = 'VisitFrequency_Metrics';
}