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:
authorpeterbo <peter.boehlke@googlemail.com>2010-07-31 05:53:45 +0400
committerpeterbo <peter.boehlke@googlemail.com>2010-07-31 05:53:45 +0400
commitf75704a6e634d40f9bfb69b9339274366fb34ca1 (patch)
tree96d6d957ba608691b8c762b7b69f1028149a4a6b /plugins/Live/Visitor.php
parentdefb60471c34a18157a6a28802e90b077dd14c9e (diff)
Refs #1120; Show goal details per action; Highlight action field in the row, where conversion happened; + Minor Updates; Must refresh assets;
git-svn-id: http://dev.piwik.org/svn/trunk@2832 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/Visitor.php')
-rw-r--r--plugins/Live/Visitor.php46
1 files changed, 41 insertions, 5 deletions
diff --git a/plugins/Live/Visitor.php b/plugins/Live/Visitor.php
index 34360cec9d..00a38555f7 100644
--- a/plugins/Live/Visitor.php
+++ b/plugins/Live/Visitor.php
@@ -78,6 +78,10 @@ class Piwik_Live_Visitor
'isVisitorGoalConverted' => $this->isVisitorGoalConverted(),
'goalIcon' => $this->getGoalIcon(),
'goalType' => $this->getGoalType(),
+ 'goalName' => $this->getGoalName(),
+ 'goalRevenue' => $this->getGoalRevenue(),
+ 'goalUrl' => $this->getGoalUrl(),
+ 'goalTimePretty' => $this->getGoalTimePretty()
);
}
@@ -104,7 +108,7 @@ class Piwik_Live_Visitor
{
return $this->details['idsite'];
}
-
+
function getNumberOfActions()
{
return $this->details['visit_total_actions'];
@@ -318,17 +322,17 @@ class Piwik_Live_Visitor
function getGoalType()
{
- if(isset($this->details['match_attribute'])){
- return $this->details['match_attribute'];
+ if(isset($this->details['goal_match_attribute'])){
+ return ucfirst($this->details['goal_match_attribute']);
}
return false;
}
function getGoalIcon()
{
- if(isset($this->details['match_attribute'])){
+ if(isset($this->details['goal_match_attribute'])){
$goalicon = "";
- switch ($this->details['match_attribute']) {
+ switch ($this->details['goal_match_attribute']) {
case "url":
$goalicon = "plugins/Live/templates/images/goal.png";
break;
@@ -343,4 +347,36 @@ class Piwik_Live_Visitor
}
return false;
}
+
+ function getGoalName()
+ {
+ if(isset($this->details['goal_name'])){
+ return $this->details['goal_name'];
+ }
+ return false;
+ }
+
+ function getGoalRevenue()
+ {
+ if(isset($this->details['goal_revenue'])){
+ return $this->details['goal_revenue'];
+ }
+ return false;
+ }
+
+ function getGoalUrl()
+ {
+ if(isset($this->details['goal_idaction_url'])){
+ return $this->details['goal_idaction_url'];
+ }
+ return false;
+ }
+
+ function getGoalTimePretty()
+ {
+ if(isset($this->details['goal_server_time'])){
+ return $this->details['goal_server_time'];
+ }
+ return false;
+ }
}