diff --git a/core/Tracker/GoalManager.php b/core/Tracker/GoalManager.php index 37219577327..2b697c52886 100644 --- a/core/Tracker/GoalManager.php +++ b/core/Tracker/GoalManager.php @@ -249,6 +249,13 @@ public function recordGoals(VisitProperties $visitProperties, Request $request) } } + $dimensions = $request->getMetadata('Goals', 'customDimensions'); + if (!is_null($dimensions)) { + foreach ($dimensions as $key => $value) { + $goal[$key] = $value; + } + } + // some goals are converted, so must be ecommerce Order or Cart Update $isRequestEcommerce = $request->getMetadata('Ecommerce', 'isRequestEcommerce'); if ($isRequestEcommerce) {