init() protected method

protected init ( )
Exemplo n.º 1
0
 protected function init()
 {
     parent::init();
     $this->dimension = new SearchCategory();
     $this->name = Piwik::translate('Actions_WidgetSearchCategories');
     $this->documentation = Piwik::translate('Actions_SiteSearchCategories1') . '<br/>' . Piwik::translate('Actions_SiteSearchCategories2');
     $this->metrics = array('nb_visits', 'nb_pages_per_search', 'exit_rate');
     $this->order = 20;
     $this->subcategoryId = 'Actions_SubmenuSitesearch';
 }
 protected function init()
 {
     parent::init();
     $this->dimension = new DestinationPage();
     $this->name = Piwik::translate('Actions_WidgetPageTitlesFollowingSearch');
     $this->documentation = Piwik::translate('Actions_SiteSearchFollowingPagesDoc') . '<br/>' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('nb_hits_following_search', 'nb_hits');
     $this->order = 19;
     $this->widgetTitle = 'Actions_WidgetPageTitlesFollowingSearch';
 }
 protected function init()
 {
     parent::init();
     $this->dimension = new KeywordwithNoSearchResult();
     $this->name = Piwik::translate('Actions_WidgetSearchNoResultKeywords');
     $this->documentation = Piwik::translate('Actions_SiteSearchIntro') . '<br /><br />' . Piwik::translate('Actions_SiteSearchKeywordsNoResultDocumentation');
     $this->metrics = array('nb_visits', 'exit_rate');
     $this->order = 16;
     $this->widgetTitle = 'Actions_WidgetSearchNoResultKeywords';
 }
Exemplo n.º 4
0
 protected function init()
 {
     parent::init();
     $this->dimension = new Keyword();
     $this->name = Piwik::translate('Actions_WidgetSearchKeywords');
     $this->documentation = Piwik::translate('Actions_SiteSearchKeywordsDocumentation') . '<br/><br/>' . Piwik::translate('Actions_SiteSearchIntro') . '<br/><br/>' . '<a href="http://piwik.org/docs/site-search/" target="_blank">' . Piwik::translate('Actions_LearnMoreAboutSiteSearchLink') . '</a>';
     $this->metrics = array('nb_visits', 'nb_pages_per_search', 'exit_rate');
     $this->order = 15;
     $this->widgetTitle = 'Actions_WidgetSearchKeywords';
 }
 protected function init()
 {
     parent::init();
     $this->dimension = new Keyword();
     $this->name = Piwik::translate('Actions_WidgetSearchKeywords');
     $this->documentation = Piwik::translate('Actions_SiteSearchKeywordsDocumentation') . '<br/><br/>' . Piwik::translate('Actions_SiteSearchIntro') . '<br/><br/>' . '<a href="http://piwik.org/docs/site-search/" rel="noreferrer"  target="_blank">' . Piwik::translate('Actions_LearnMoreAboutSiteSearchLink') . '</a>';
     $this->metrics = array('nb_visits', 'nb_pages_per_search');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->order = 15;
     $this->widgetTitle = 'Actions_WidgetSearchKeywords';
 }
Exemplo n.º 6
0
 protected function init()
 {
     parent::init();
     $this->dimension = new KeywordwithNoSearchResult();
     $this->name = Piwik::translate('Actions_WidgetSearchNoResultKeywords');
     $this->documentation = Piwik::translate('Actions_SiteSearchIntro') . '<br /><br />' . Piwik::translate('Actions_SiteSearchKeywordsNoResultDocumentation');
     $this->metrics = array('nb_visits');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->order = 18;
     $this->subcategoryId = 'Actions_SubmenuSitesearch';
 }
 protected function init()
 {
     parent::init();
     $this->dimension = new DestinationPage();
     $this->name = Piwik::translate('Actions_WidgetPageTitlesFollowingSearch');
     $this->documentation = Piwik::translate('Actions_SiteSearchFollowingPagesDoc') . '<br/>' . Piwik::translate('General_UsePlusMinusIconsDocumentation');
     $this->metrics = array('nb_hits_following_search', 'nb_hits');
     $this->processedMetrics = array(new AverageTimeOnPage(), new BounceRate(), new ExitRate(), new AveragePageGenerationTime());
     $this->order = 19;
     $this->subcategoryId = 'Actions_SubmenuSitesearch';
 }