diff options
Diffstat (limited to 'core/Tracker/GoalManager.php')
-rw-r--r-- | core/Tracker/GoalManager.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 91560fe43c..662f86a445 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -789,6 +789,15 @@ class GoalManager */ protected function insertNewConversion($newGoal) { + /** + * This hook is called before inserting a new Goal Conversion.. You can use it to update the Goal + * attributes before they are saved in the log_conversion table. + * `$visitor` contains the current known visit information. + * @param array $goal Array of SQL fields value for this conversion, will be inserted in the log_conversion table + * @param \Piwik\Tracker\Request $request + */ + Piwik::postEvent('Tracker.newConversionInformation', array($newGoal, $this->request)); + $newGoalDebug = $newGoal; $newGoalDebug['idvisitor'] = bin2hex($newGoalDebug['idvisitor']); Common::printDebug($newGoalDebug); |