From 68554360afb6605f8415a8a875b8c1004dc2d2da Mon Sep 17 00:00:00 2001 From: Chris Cagle Date: Sat, 9 Feb 2013 14:44:39 -0500 Subject: [PATCH 1/2] Added Tracker.recordStandardGoals Hook --- core/Tracker/GoalManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index b6ea4e38c97..47b37404581 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -803,6 +803,8 @@ protected function recordStandardGoals($goal, $action, $visitorInformation) : $visitorInformation['visit_last_action_time']; $this->recordGoal($newGoal); + + Piwik_PostEvent('Tracker.recordStandardGoals', $newGoal); } } /** From 2feb599509e32c66897da747c93f033ac754d499 Mon Sep 17 00:00:00 2001 From: Chris Cagle Date: Sat, 9 Feb 2013 17:09:35 -0500 Subject: [PATCH 2/2] Added Tracker.recordEcommerceGoal Hook --- core/Tracker/GoalManager.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 47b37404581..482019219bb 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -426,6 +426,8 @@ protected function recordEcommerceGoal($goal, $visitorInformation) { $this->recordEcommerceItems($goal, $items); } + + Piwik_PostEvent('Tracker.recordEcommerceGoal', $goal); } /**