Skip to content

Commit

Permalink
Merge pull request #25 from ccagle8/goalHook
Browse files Browse the repository at this point in the history
Added Tracker.recordStandardGoals Hook  	
Added Tracker.recordEcommerceGoal Hook
  • Loading branch information
Matthieu Aubry committed Feb 9, 2013
2 parents ebd0095 + 2feb599 commit a85608d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/Tracker/GoalManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,8 @@ protected function recordEcommerceGoal($goal, $visitorInformation)
{
$this->recordEcommerceItems($goal, $items);
}

Piwik_PostEvent('Tracker.recordEcommerceGoal', $goal);
}

/**
Expand Down Expand Up @@ -803,6 +805,8 @@ protected function recordStandardGoals($goal, $action, $visitorInformation)
: $visitorInformation['visit_last_action_time'];

$this->recordGoal($newGoal);

Piwik_PostEvent('Tracker.recordStandardGoals', $newGoal);
}
}
/**
Expand Down

0 comments on commit a85608d

Please sign in to comment.