diff --git a/app/plugins/Goals/Archiver.php b/app/plugins/Goals/Archiver.php index 2373f68d0..36de08009 100644 --- a/app/plugins/Goals/Archiver.php +++ b/app/plugins/Goals/Archiver.php @@ -116,7 +116,7 @@ public function __construct(ArchiveProcessor $processor) public function aggregateDayReport() { $hasConversions = $this->getProcessor()->getNumberOfVisitsConverted() > 0; - if ($hasConversions) { + if ($hasConversions || $this->usesEcommerce($this->getSiteId())) { $this->aggregateGeneralGoalMetrics(); } @@ -531,7 +531,7 @@ public function aggregateMultipleReports() } // overall numeric metrics - if ($hasConversions) { + if ($hasConversions || $this->usesEcommerce($this->getSiteId())) { $fieldsToSum = array(); foreach ($goalIdsToSum as $goalId) { $metricsToSum = Goals::getGoalColumns($goalId);