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:
authormattpiwik <matthieu.aubry@gmail.com>2013-01-03 06:00:18 +0400
committermattpiwik <matthieu.aubry@gmail.com>2013-01-03 06:00:18 +0400
commite872cf6e0fbb160762387658a9fae278e560eec1 (patch)
tree3a3ff94e2c5277b9b83cf4baa40c56b99097f002 /plugins/Live/Visitor.php
parent458bc3614e33a622b8235fabb2858dfc804ef461 (diff)
* Increment visitor_total_actions when doing a site search request
* Include 'searches' the sum of all searches for this visitor, in Live.getVisitorDetails API output * adding NonUnicode test to debug the failing build git-svn-id: http://dev.piwik.org/svn/trunk@7721 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r--plugins/Live/Visitor.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php
index 653bd65378..7093182850 100644
--- a/plugins/Live/Visitor.php
+++ b/plugins/Live/Visitor.php
@@ -48,7 +48,8 @@ class Piwik_Live_Visitor
'visitConvertedIcon' => $this->getVisitorGoalConvertedIcon(),
'visitEcommerceStatus' => $this->getVisitEcommerceStatus(),
'visitEcommerceStatusIcon' => $this->getVisitEcommerceStatusIcon(),
-
+
+ 'searches' => $this->getNumberOfSearches(),
'actions' => $this->getNumberOfActions(),
// => false are placeholders to be filled in API later
'actionDetails' => false,
@@ -167,6 +168,11 @@ class Piwik_Live_Visitor
return $this->details['visit_total_actions'];
}
+ function getNumberOfSearches()
+ {
+ return $this->details['visit_total_searches'];
+ }
+
function getVisitLength()
{
return $this->details['visit_total_time'];