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:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-05-13 21:40:33 +0400
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-05-13 21:40:33 +0400
commitf22bfd960f15c0d81fe2b891aebd50ab57e7b984 (patch)
treea9ab59a9e53f39e5eb5c685a6d2e5036ab06ec13 /plugins/Actions
parentd8868732b033367d0cefd7156b89f766bd8644b8 (diff)
Fixes #1259 Always setting sum_time_spent for pages in the API results. Also now setting time on site / time on page at 0 second (industry standard).
Diffstat (limited to 'plugins/Actions')
-rw-r--r--plugins/Actions/Actions.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/Actions/Actions.php b/plugins/Actions/Actions.php
index 56a6607245..4ec7168245 100644
--- a/plugins/Actions/Actions.php
+++ b/plugins/Actions/Actions.php
@@ -428,6 +428,14 @@ class Piwik_Actions extends Piwik_Plugin
}
}
+ // For pages that bounce, we don't know the time on page.
+ if($row['type'] == Piwik_Tracker_Action::TYPE_ACTION_URL
+ && isset($row['nb_visits'])
+ && !isset($row['sum_time_spent']))
+ {
+ $row['sum_time_spent'] = Zend_Registry::get('config')->Tracker->default_time_one_page_visit * $row['nb_visits'];
+ }
+
foreach($row as $name => $value)
{
// we don't add this information as itnot pertinent