diff options
Diffstat (limited to 'plugins/Actions/Reports/GetPageUrls.php')
-rw-r--r-- | plugins/Actions/Reports/GetPageUrls.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Actions/Reports/GetPageUrls.php b/plugins/Actions/Reports/GetPageUrls.php index 5c434993ac..794848a8a5 100644 --- a/plugins/Actions/Reports/GetPageUrls.php +++ b/plugins/Actions/Reports/GetPageUrls.php @@ -10,6 +10,7 @@ namespace Piwik\Plugins\Actions\Reports; use Piwik\DbHelper; use Piwik\Piwik; +use Piwik\Plugin\ReportsProvider; use Piwik\Plugin\ViewDataTable; use Piwik\Plugins\Actions\Columns\Metrics\AveragePageGenerationTime; use Piwik\Plugins\Actions\Columns\Metrics\BounceRate; @@ -77,5 +78,18 @@ class GetPageUrls extends Base $this->addPageDisplayProperties($view); $this->addBaseDisplayProperties($view); + + // related reports are only shown on performance page + if ($view->requestConfig->getRequestParam('performance') !== '1') { + $view->config->related_reports = []; + } + } + + public function getRelatedReports() + { + return [ + ReportsProvider::factory('Actions', 'getEntryPageUrls'), + ReportsProvider::factory('Actions', 'getExitPageUrls'), + ]; } } |