Inheritance: extends piwik\plugin\Report
Example #1
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Region();
     $this->name = Piwik::translate('UserCountry_Region');
     $this->documentation = Piwik::translate('UserCountry_getRegionDocumentation') . '<br/>' . $this->getGeoIPReportDocSuffix();
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 7;
     $this->subcategoryId = 'UserCountry_SubmenuLocations';
 }
Example #2
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Continent();
     $this->name = Piwik::translate('UserCountry_Continent');
     $this->documentation = Piwik::translate('UserCountry_getContinentDocumentation');
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 6;
     $this->widgetTitle = Piwik::translate('UserCountry_WidgetLocation') . ' (' . Piwik::translate('UserCountry_Continent') . ')';
 }
Example #3
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Continent();
     $this->name = Piwik::translate('UserCountry_Continent');
     $this->documentation = Piwik::translate('UserCountry_getContinentDocumentation');
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 6;
     $this->subcategoryId = 'UserCountry_SubmenuLocations';
 }
Example #4
0
 protected function init()
 {
     parent::init();
     $this->dimension = new City();
     $this->name = Piwik::translate('UserCountry_City');
     $this->documentation = Piwik::translate('UserCountry_getCityDocumentation') . '<br/>' . $this->getGeoIPReportDocSuffix();
     $this->metrics = array('nb_visits', 'nb_uniq_visitors', 'nb_actions');
     $this->hasGoalMetrics = true;
     $this->order = 8;
     $this->widgetTitle = Piwik::translate('UserCountry_WidgetLocation') . ' (' . Piwik::translate('UserCountry_City') . ')';
 }