Skip to content

Commit

Permalink
[Issue matomo-org#55 @ plugin-CustomDimensions] copy action custom di…
Browse files Browse the repository at this point in the history
…mensions to conversions
  • Loading branch information
Robin Bakker committed Feb 23, 2017
1 parent 33e0ecd commit 7b95ce2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/Tracker/GoalManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7b95ce2

Please sign in to comment.