Exemplo n.º 1
0
 public function getMetrics()
 {
     $metrics = parent::getMetrics();
     $metrics['nb_conversions'] = Piwik::translate('General_EcommerceOrders');
     $metrics['items'] = Piwik::translate('General_PurchasedProducts');
     return $metrics;
 }
Exemplo n.º 2
0
 public function getMetrics()
 {
     $metrics = parent::getMetrics();
     $metrics['nb_conversions'] = Piwik::translate('General_AbandonedCarts');
     $metrics['revenue'] = Piwik::translate('Goals_LeftInCart', Piwik::translate('General_ColumnRevenue'));
     $metrics['items'] = Piwik::translate('Goals_LeftInCart', Piwik::translate('Goals_Products'));
     return $metrics;
 }
Exemplo n.º 3
0
 public function getMetrics()
 {
     $metrics = parent::getMetrics();
     $metrics['revenue'] = Piwik::translate('General_ProductRevenue');
     $metrics['orders'] = Piwik::translate('General_UniquePurchases');
     $metrics['conversion_rate'] = Piwik::translate('General_ProductConversionRate');
     return $metrics;
 }
 protected function init()
 {
     parent::init();
     $this->action = 'getVisitsUntilConversion';
     $this->name = Piwik::translate('General_EcommerceOrders') . ' - ' . Piwik::translate('Goals_VisitsUntilConv');
     $this->dimension = new VisitsUntilConversion();
     $this->constantRowsCount = true;
     $this->processedMetrics = false;
     $this->metrics = array('nb_conversions');
     $this->order = 11;
     $this->parameters = array('idGoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER);
 }
 protected function init()
 {
     parent::init();
     $this->action = 'getDaysToConversion';
     $this->name = Piwik::translate('General_AbandonedCarts') . ' - ' . Piwik::translate('Goals_DaysToConv');
     $this->dimension = new DaysToConversion();
     $this->constantRowsCount = true;
     $this->processedMetrics = false;
     $this->metrics = array('nb_conversions');
     $this->order = 25;
     $this->parameters = array('idGoal' => Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART);
 }