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>2011-05-17 02:37:02 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-05-17 02:37:02 +0400
commitd8ed9a11808fbe89cf4f13df0afee1a27a4944d7 (patch)
tree400024c1b2de9d1199efeab97f33eb1be4eda9a1 /plugins/Live/Visitor.php
parenta2103092061013ed8b90750cbd9ea4752c50ad82 (diff)
Refs #898
* New segment visitType=returningCustomer for visits that are returning, and bought something in a previous visit + integration tests Refs #2432 * Tracking Custom vars per page + PHP Tracking API + tests * TODO: JS API + js tests + Reporting Also trying to improve mysqli build.. git-svn-id: http://dev.piwik.org/svn/trunk@4709 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r--plugins/Live/Visitor.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php
index 77b97c0c81..5ddea435b1 100644
--- a/plugins/Live/Visitor.php
+++ b/plugins/Live/Visitor.php
@@ -42,7 +42,7 @@ class Piwik_Live_Visitor
'idVisit' => $this->getIdVisit(),
'visitIp' => $this->getIp(),
'visitorId' => $this->getVisitorId(),
- 'visitorType' => $this->isVisitorReturning() ? 'returning' : 'new',
+ 'visitorType' => $this->getVisitorReturning() == 2 ? 'returningCustomer' : ($this->getVisitorReturning() == 1 ? 'returning' : 'new'),
'visitConverted' => $this->isVisitorGoalConverted(),
'visitEcommerceStatus' => $this->getVisitEcommerceStatus(),
@@ -167,7 +167,7 @@ class Piwik_Live_Visitor
return Piwik::getPrettyTimeFromSeconds($this->details['visit_total_time']);
}
- function isVisitorReturning()
+ function getVisitorReturning()
{
return $this->details['visitor_returning'];
}