diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-25 15:53:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-25 15:53:44 +0300 |
commit | 1eb47806339a2870b779195b404e7a06044bacf8 (patch) | |
tree | 97da97d62b3d628799b9e39524111c0ff9dbab09 /plugins/Actions | |
parent | 551413f3d3694830aa0822f7f28e6a33372eff67 (diff) |
Remove processed metrics from metricsDocumentation element in API.getProcessedReport result.
Diffstat (limited to 'plugins/Actions')
-rw-r--r-- | plugins/Actions/Reports/GetEntryPageTitles.php | 4 | ||||
-rw-r--r-- | plugins/Actions/Reports/GetEntryPageUrls.php | 3 | ||||
-rw-r--r-- | plugins/Actions/Reports/GetExitPageTitles.php | 3 | ||||
-rw-r--r-- | plugins/Actions/Reports/GetExitPageUrls.php | 3 |
4 files changed, 13 insertions, 0 deletions
diff --git a/plugins/Actions/Reports/GetEntryPageTitles.php b/plugins/Actions/Reports/GetEntryPageTitles.php index 2dbb887c45..5abb8ca824 100644 --- a/plugins/Actions/Reports/GetEntryPageTitles.php +++ b/plugins/Actions/Reports/GetEntryPageTitles.php @@ -56,6 +56,10 @@ class GetEntryPageTitles extends Base $metrics = parent::getMetricsDocumentation(); $metrics['bounce_rate'] = Piwik::translate('General_ColumnBounceRateForPageDocumentation'); + // remove these metrics from API.getProcessedReport version of this report + unset($metrics['avg_time_on_page']); + unset($metrics['exit_rate']); + return $metrics; } diff --git a/plugins/Actions/Reports/GetEntryPageUrls.php b/plugins/Actions/Reports/GetEntryPageUrls.php index de6f042b20..05b1102299 100644 --- a/plugins/Actions/Reports/GetEntryPageUrls.php +++ b/plugins/Actions/Reports/GetEntryPageUrls.php @@ -61,6 +61,9 @@ class GetEntryPageUrls extends Base $metrics = parent::getMetricsDocumentation(); $metrics['bounce_rate'] = Piwik::translate('General_ColumnBounceRateForPageDocumentation'); + unset($metrics['bounce_rate']); + unset($metrics['exit_rate']); + return $metrics; } diff --git a/plugins/Actions/Reports/GetExitPageTitles.php b/plugins/Actions/Reports/GetExitPageTitles.php index 2d58a2f911..261b364eff 100644 --- a/plugins/Actions/Reports/GetExitPageTitles.php +++ b/plugins/Actions/Reports/GetExitPageTitles.php @@ -66,6 +66,9 @@ class GetExitPageTitles extends Base $metrics = parent::getMetricsDocumentation(); $metrics['nb_visits'] = Piwik::translate('General_ColumnUniquePageviewsDocumentation'); + unset($metrics['bounce_rate']); + unset($metrics['avg_time_on_page']); + return $metrics; } diff --git a/plugins/Actions/Reports/GetExitPageUrls.php b/plugins/Actions/Reports/GetExitPageUrls.php index 80ebcc8546..e41039c9f1 100644 --- a/plugins/Actions/Reports/GetExitPageUrls.php +++ b/plugins/Actions/Reports/GetExitPageUrls.php @@ -61,6 +61,9 @@ class GetExitPageUrls extends Base $metrics = parent::getMetrics(); $metrics['nb_visits'] = Piwik::translate('General_ColumnUniquePageviews'); + unset($metrics['bounce_rate']); + unset($metrics['avg_time_on_page']); + return $metrics; } |