diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-04-05 02:11:37 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-04-05 02:11:37 +0400 |
commit | 3ed05aa9f4ffea26b82b5e648eb218e0f42b143d (patch) | |
tree | eb46c972a98004b1b97032e63f77e0a9c620d4ac /plugins/Live/Controller.php | |
parent | 09a906e1ae4442100429186c97fa2ccaa61dbd6d (diff) |
Refs #1839
* showing 'page url not defined' when no url in Visitor Log
* now showing Page title as well as linked Page URL in Visitor Log (and simplyfing API output + 1 extra query instead of 2 extra queries for each visit)
* also showing, oh hover over the page title & URL, the Time of page view (in website timezone) for each page, in Visitor Log and in Live! widget
* showing "Goal converted" only for the actual page view that converted the goal (before, the Goal would show for all the same page URLs matching the page URL that matcehd the goal (but in fact, until 1.3 where we implement multiple conversions per visit, only one URL would have triggered the goal)
git-svn-id: http://dev.piwik.org/svn/trunk@4314 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/Controller.php')
-rw-r--r-- | plugins/Live/Controller.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/Live/Controller.php b/plugins/Live/Controller.php index af6a2b16c2..401fc88236 100644 --- a/plugins/Live/Controller.php +++ b/plugins/Live/Controller.php @@ -64,6 +64,7 @@ class Piwik_Live_Controller extends Piwik_Controller // disable the RSS feed $view->disableShowExportAsRssFeed(); + $view->setCustomParameter('pageUrlNotDefined', Zend_Registry::get('config')->General->action_default_url_when_not_defined); return $this->renderView($view, $fetch); } @@ -85,28 +86,32 @@ class Piwik_Live_Controller extends Piwik_Controller echo $rendered; } - public function getUsersInLastXMin($minutes = 30) { + public function getUsersInLastXMin($minutes = 30) + { $api = new Piwik_API_Request("method=Live.getUsersInLastXMin&idSite=".$this->idSite."&minutes=".$minutes."&format=php&serialize=0&disable_generic_filters=1"); $visitors_halfhour = $api->process(); return count($visitors_halfhour); } - public function getUsersInLastXDays($days = 1) { + public function getUsersInLastXDays($days = 1) + { $api = new Piwik_API_Request("method=Live.getUsersInLastXDays&idSite=$this->idSite&days=$days&format=php&serialize=0&disable_generic_filters=1"); $visitors_today = $api->process(); return count($visitors_today); } - public function getPageImpressionsInLastXMin($minutes = 30) { + public function getPageImpressionsInLastXMin($minutes = 30) + { $api = new Piwik_API_Request("method=Live.getPageImpressionsInLastXMin&idSite=$this->idSite&minutes=$minutes&format=php&serialize=0&disable_generic_filters=1"); $pis_halfhour = $api->process(); return count($pis_halfhour); } - public function getPageImpressionsInLastXDays($days = 1) { + public function getPageImpressionsInLastXDays($days = 1) + { $api = new Piwik_API_Request("method=Live.getPageImpressionsInLastXDays&idSite=$this->idSite&days=$days&format=php&serialize=0&disable_generic_filters=1"); $pis_today = $api->process(); |