Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
diosmosis committed Sep 27, 2023
1 parent 8e3cd38 commit a874f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/plugins/Goals/Archiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a874f26

Please sign in to comment.