protected function init() { parent::init(); $this->dimension = new VisitDuration(); $this->name = Piwik::translate('VisitorInterest_WidgetLengths'); $this->documentation = Piwik::translate('VisitorInterest_WidgetLengthsDocumentation') . '<br />' . Piwik::translate('General_ChangeTagCloudView'); $this->metrics = array('nb_visits'); $this->processedMetrics = false; $this->constantRowsCount = true; $this->order = 15; }
protected function init() { parent::init(); $this->dimension = new VisitsbyVisitNumber(); $this->name = Piwik::translate('VisitorInterest_visitsByVisitCount'); $this->documentation = Piwik::translate('VisitorInterest_WidgetVisitsByNumDocumentation') . '<br />' . Piwik::translate('General_ChangeTagCloudView'); $this->metrics = array('nb_visits'); $this->processedMetrics = array(new VisitsPercent()); $this->constantRowsCount = true; $this->order = 25; }
protected function init() { parent::init(); $this->dimension = new VisitsByDaysSinceLastVisit(); $this->name = Piwik::translate('VisitorInterest_VisitsByDaysSinceLast'); $this->documentation = Piwik::translate('VisitorInterest_WidgetVisitsByDaysSinceLastDocumentation'); $this->metrics = array('nb_visits'); $this->processedMetrics = false; $this->constantRowsCount = true; $this->order = 30; $this->widgetTitle = 'VisitorInterest_WidgetVisitsByDaysSinceLast'; }