diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-01-22 04:38:25 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-01-22 04:38:25 +0300 |
commit | 70090f42377795ba658153753a2b30b0e0172c57 (patch) | |
tree | 4e271ec564c7bceca0c0b075b81be940270146a4 /plugins/VisitorInterest | |
parent | bd12fe3a65dfb552f1801c86681a70bb56861ae2 (diff) |
Adds segmented log feature to more reports (#13939)
* Add segmented visitorlog feature to page title reports
* Add segmented visitorlog feature to site search keywords reports
* Adds new AddSegmentByRangeLabel filter
* updates tests
* improve check for summary row
* Handle new visits row segment
Diffstat (limited to 'plugins/VisitorInterest')
-rw-r--r-- | plugins/VisitorInterest/API.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/VisitorInterest/API.php b/plugins/VisitorInterest/API.php index ec2d75b283..e54dca28e6 100644 --- a/plugins/VisitorInterest/API.php +++ b/plugins/VisitorInterest/API.php @@ -34,6 +34,7 @@ class API extends \Piwik\Plugin\API { $dataTable = $this->getDataTable(Archiver::TIME_SPENT_RECORD_NAME, $idSite, $period, $date, $segment); $dataTable->queueFilter('Sort', array('label', 'asc', true, false)); + $dataTable->queueFilter('AddSegmentByRangeLabel', array('visitDuration')); $dataTable->queueFilter('BeautifyTimeRangeLabels', array( Piwik::translate('VisitorInterest_BetweenXYSeconds'), Piwik::translate('Intl_OneMinuteShort'), @@ -45,6 +46,7 @@ class API extends \Piwik\Plugin\API { $dataTable = $this->getDataTable(Archiver::PAGES_VIEWED_RECORD_NAME, $idSite, $period, $date, $segment); $dataTable->queueFilter('Sort', array('label', 'asc', true, false)); + $dataTable->queueFilter('AddSegmentByRangeLabel', array('actions')); $dataTable->queueFilter('BeautifyRangeLabels', array( Piwik::translate('VisitorInterest_OnePage'), Piwik::translate('VisitorInterest_NPages'))); @@ -65,6 +67,7 @@ class API extends \Piwik\Plugin\API { $dataTable = $this->getDataTable( Archiver::DAYS_SINCE_LAST_RECORD_NAME, $idSite, $period, $date, $segment, Metrics::INDEX_NB_VISITS); + $dataTable->queueFilter('AddSegmentByRangeLabel', array('daysSinceLastVisit')); $dataTable->queueFilter('BeautifyRangeLabels', array(Piwik::translate('Intl_OneDay'), Piwik::translate('Intl_NDays'))); return $dataTable; } @@ -84,6 +87,7 @@ class API extends \Piwik\Plugin\API $dataTable = $this->getDataTable( Archiver::VISITS_COUNT_RECORD_NAME, $idSite, $period, $date, $segment, Metrics::INDEX_NB_VISITS); + $dataTable->queueFilter('AddSegmentByRangeLabel', array('visitCount')); $dataTable->queueFilter('BeautifyRangeLabels', array( Piwik::translate('General_OneVisit'), Piwik::translate('General_NVisits'))); |