diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-17 02:37:02 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-05-17 02:37:02 +0400 |
commit | d8ed9a11808fbe89cf4f13df0afee1a27a4944d7 (patch) | |
tree | 400024c1b2de9d1199efeab97f33eb1be4eda9a1 /plugins/Live/Visitor.php | |
parent | a2103092061013ed8b90750cbd9ea4752c50ad82 (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.php | 4 |
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']; } |