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 /plugins/Goals
parent76102d2c9b21cd7317ed9d4e6ea7879f83b01474 (diff)
Show 'new' metrics on visitor engagement report/sparklines (#15128)
Diffstat (limited to 'plugins/Goals')
-rw-r--r--plugins/Goals/API.php3
-rw-r--r--plugins/Goals/Archiver.php6
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/Goals/API.php b/plugins/Goals/API.php
index b09519e37b..fe8058e028 100644
--- a/plugins/Goals/API.php
+++ b/plugins/Goals/API.php
@@ -56,7 +56,6 @@ use Piwik\Validators\WhitelistedValue;
class API extends \Piwik\Plugin\API
{
const AVG_PRICE_VIEWED = 'avg_price_viewed';
- const NEW_VISIT_SEGMENT = 'visitorType==new';
/**
* Return a single goal.
@@ -449,7 +448,7 @@ class API extends \Piwik\Plugin\API
$segments = array(
'' => false,
- '_new_visit' => self::NEW_VISIT_SEGMENT,
+ '_new_visit' => VisitFrequencyAPI::NEW_VISITOR_SEGMENT,
'_returning_visit' => VisitFrequencyAPI::RETURNING_VISITOR_SEGMENT
);
diff --git a/plugins/Goals/Archiver.php b/plugins/Goals/Archiver.php
index ff434aab3b..c494afd0b8 100644
--- a/plugins/Goals/Archiver.php
+++ b/plugins/Goals/Archiver.php
@@ -35,8 +35,6 @@ class Archiver extends \Piwik\Plugin\Archiver
const VISITS_COUNT_FIELD = 'visitor_count_visits';
const DAYS_SINCE_FIRST_VISIT_FIELD = 'visitor_days_since_first';
- const NEW_VISIT_SEGMENT = 'visitorType%3D%3Dnew'; // visitorType==new
-
/**
* This array stores the ranges to use when displaying the 'visits to conversion' report
*/
@@ -91,7 +89,7 @@ class Archiver extends \Piwik\Plugin\Archiver
$this->aggregateGeneralGoalMetrics();
$this->aggregateEcommerceItems();
- $this->getProcessor()->processDependentArchive('Goals', API::NEW_VISIT_SEGMENT);
+ $this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::NEW_VISITOR_SEGMENT);
$this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::RETURNING_VISITOR_SEGMENT);
}
@@ -425,7 +423,7 @@ class Archiver extends \Piwik\Plugin\Archiver
$columnsToRenameAfterAggregation = null,
$countRowsRecursive = array());
- $this->getProcessor()->processDependentArchive('Goals', API::NEW_VISIT_SEGMENT);
+ $this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::NEW_VISITOR_SEGMENT);
$this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::RETURNING_VISITOR_SEGMENT);
}
}