Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Goals/Archiver.php')
-rw-r--r--plugins/Goals/Archiver.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Goals/Archiver.php b/plugins/Goals/Archiver.php
index d49d6aed68..fbb5b54e6e 100644
--- a/plugins/Goals/Archiver.php
+++ b/plugins/Goals/Archiver.php
@@ -13,6 +13,7 @@ use Piwik\DataAccess\LogAggregator;
use Piwik\DataArray;
use Piwik\DataTable;
use Piwik\Metrics;
+use Piwik\Plugin\Manager;
use Piwik\Tracker\GoalManager;
use Piwik\Plugins\VisitFrequency\API as VisitFrequencyAPI;
@@ -96,7 +97,10 @@ class Archiver extends \Piwik\Plugin\Archiver
public function aggregateDayReport()
{
$this->aggregateGeneralGoalMetrics();
- $this->aggregateEcommerceItems();
+
+ if (Manager::getInstance()->isPluginActivated('Ecommerce')) {
+ $this->aggregateEcommerceItems();
+ }
$this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::NEW_VISITOR_SEGMENT);
$this->getProcessor()->processDependentArchive('Goals', VisitFrequencyAPI::RETURNING_VISITOR_SEGMENT);