PDF rausgenommen
This commit is contained in:
18
msd2/tracking/piwik/plugins/Referrers/Reports/Base.php
Normal file
18
msd2/tracking/piwik/plugins/Referrers/Reports/Base.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
abstract class Base extends \Piwik\Plugin\Report
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
$this->categoryId = 'Referrers_Referrers';
|
||||
}
|
||||
|
||||
}
|
62
msd2/tracking/piwik/plugins/Referrers/Reports/GetAll.php
Normal file
62
msd2/tracking/piwik/plugins/Referrers/Reports/GetAll.php
Normal file
@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\Referrers\Columns\Referrer;
|
||||
use Piwik\Plugins\Referrers\Referrers;
|
||||
use Piwik\Report\ReportWidgetFactory;
|
||||
use Piwik\Widget\WidgetsList;
|
||||
|
||||
class GetAll extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Referrer();
|
||||
$this->name = Piwik::translate('Referrers_WidgetGetAll');
|
||||
$this->documentation = Piwik::translate('Referrers_AllReferrersReportDocumentation', '<br />');
|
||||
$this->order = 2;
|
||||
|
||||
$this->subcategoryId = 'Referrers_WidgetGetAll';
|
||||
}
|
||||
|
||||
public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
|
||||
{
|
||||
$widgetsList->addWidgetConfig(
|
||||
$factory->createWidget()->setName('Referrers_Referrers')
|
||||
);
|
||||
}
|
||||
|
||||
public function getDefaultTypeViewDataTable()
|
||||
{
|
||||
return HtmlTable\AllColumns::ID;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$referrers = new Referrers();
|
||||
$setGetAllHtmlPrefix = array($referrers, 'setGetAllHtmlPrefix');
|
||||
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->show_goals = true;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 20;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_row_actions = true;
|
||||
}
|
||||
|
||||
$view->config->filters[] = array('MetadataCallbackAddMetadata', array('referer_type', 'html_label_prefix', $setGetAllHtmlPrefix));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\EventDispatcher;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\Campaign;
|
||||
|
||||
class GetCampaigns extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Campaign();
|
||||
$this->name = Piwik::translate('Referrers_Campaigns');
|
||||
$this->documentation = Piwik::translate('Referrers_CampaignsReportDocumentation',
|
||||
array('<br />', '<a href="https://matomo.org/docs/tracking-campaigns/" rel="noreferrer noopener" target="_blank">', '</a>'));
|
||||
$this->actionToLoadSubTables = 'getKeywordsFromCampaignId';
|
||||
$this->hasGoalMetrics = true;
|
||||
$this->order = 9;
|
||||
|
||||
$this->subcategoryId = 'Referrers_Campaigns';
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 25;
|
||||
|
||||
$this->configureFooterMessage($view);
|
||||
}
|
||||
|
||||
|
||||
protected function configureFooterMessage(ViewDataTable $view)
|
||||
{
|
||||
if ($this->isSubtableReport) {
|
||||
// no footer message for subtables
|
||||
return;
|
||||
}
|
||||
|
||||
$out = '';
|
||||
EventDispatcher::getInstance()->postEvent('Template.afterCampaignsReport', array(&$out));
|
||||
$view->config->show_footer_message = $out;
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\EventDispatcher;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution;
|
||||
use Piwik\Plugins\Referrers\Columns\Keyword;
|
||||
use Piwik\Tracker\Visit;
|
||||
|
||||
class GetKeywords extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Keyword();
|
||||
$this->name = Piwik::translate('Referrers_Keywords');
|
||||
$this->documentation = Piwik::translate('Referrers_KeywordsReportDocumentation', '<br /><br />') .
|
||||
'<br /><br />'. Piwik::translate('Referrers_KeywordsReportDocumentationNote');
|
||||
$this->actionToLoadSubTables = 'getSearchEnginesFromKeywordId';
|
||||
$this->hasGoalMetrics = true;
|
||||
$this->order = 3;
|
||||
$this->subcategoryId = 'Referrers_SubmenuSearchEngines';
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', Piwik::translate('General_ColumnKeyword'));
|
||||
|
||||
$view->requestConfig->filter_limit = 25;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_subtable_when_show_goals = true;
|
||||
}
|
||||
|
||||
$this->configureFooterMessage($view);
|
||||
}
|
||||
|
||||
protected function configureFooterMessage(ViewDataTable $view)
|
||||
{
|
||||
if ($this->isSubtableReport) {
|
||||
// no footer message for subtables
|
||||
return;
|
||||
}
|
||||
|
||||
$out = '';
|
||||
EventDispatcher::getInstance()->postEvent('Template.afterReferrersKeywordsReport', array(&$out));
|
||||
$view->config->show_footer_message = $out;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\Keyword;
|
||||
|
||||
class GetKeywordsFromCampaignId extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Keyword();
|
||||
$this->name = Piwik::translate('Referrers_Campaigns');
|
||||
$this->documentation = Piwik::translate('Referrers_CampaignsReportDocumentation',
|
||||
array('<br />', '<a href="https://matomo.org/docs/tracking-campaigns/" rel="noreferrer noopener" target="_blank">', '</a>'));
|
||||
$this->isSubtableReport = true;
|
||||
$this->order = 10;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_search = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\Keyword;
|
||||
|
||||
class GetKeywordsFromSearchEngineId extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Keyword();
|
||||
$this->name = Piwik::translate('Referrers_SearchEngines');
|
||||
$this->documentation = Piwik::translate('Referrers_SearchEnginesReportDocumentation', '<br />');
|
||||
$this->isSubtableReport = true;
|
||||
$this->order = 8;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_search = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,129 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\EventDispatcher;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Evolution;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\Sparklines;
|
||||
use Piwik\Plugins\Referrers\Columns\ReferrerType;
|
||||
use Piwik\Widget\WidgetsList;
|
||||
use Piwik\Report\ReportWidgetFactory;
|
||||
|
||||
class GetReferrerType extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new ReferrerType();
|
||||
$this->name = Piwik::translate('Referrers_Type');
|
||||
$this->documentation = Piwik::translate('Referrers_TypeReportDocumentation') . '<br />'
|
||||
. '<b>' . Piwik::translate('Referrers_DirectEntry') . ':</b> ' . Piwik::translate('Referrers_DirectEntryDocumentation') . '<br />'
|
||||
. '<b>' . Piwik::translate('Referrers_SearchEngines') . ':</b> ' . Piwik::translate('Referrers_SearchEnginesDocumentation',
|
||||
array('<br />', '"' . Piwik::translate('Referrers_SubmenuSearchEngines') . '"')) . '<br />'
|
||||
. '<b>' . Piwik::translate('Referrers_Websites') . ':</b> ' . Piwik::translate('Referrers_WebsitesDocumentation',
|
||||
array('<br />', '"' . Piwik::translate('Referrers_SubmenuWebsitesOnly') . '"')) . '<br />'
|
||||
. '<b>' . Piwik::translate('Referrers_Campaigns') . ':</b> ' . Piwik::translate('Referrers_CampaignsDocumentation',
|
||||
array('<br />', '"' . Piwik::translate('Referrers_Campaigns') . '"'));
|
||||
$this->constantRowsCount = true;
|
||||
$this->hasGoalMetrics = true;
|
||||
$this->order = 1;
|
||||
$this->subcategoryId = 'Referrers_WidgetGetAll';
|
||||
$this->supportsFlatten = false;
|
||||
}
|
||||
|
||||
public function getDefaultTypeViewDataTable()
|
||||
{
|
||||
return HtmlTable\AllColumns::ID;
|
||||
}
|
||||
|
||||
public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
|
||||
{
|
||||
$widgetsList->addWidgetConfig(
|
||||
$factory->createWidget()
|
||||
->setName('Referrers_ReferrerTypes')
|
||||
->setSubcategoryId('Referrers_WidgetGetAll')
|
||||
);
|
||||
|
||||
$widgetsList->addWidgetConfig(
|
||||
$factory->createWidget()
|
||||
->setName('General_EvolutionOverPeriod')
|
||||
->setSubcategoryId('General_Overview')
|
||||
->setAction('getEvolutionGraph')
|
||||
->setOrder(9)
|
||||
->setIsNotWidgetizable()
|
||||
->forceViewDataTable(Evolution::ID)
|
||||
->addParameters(array(
|
||||
'columns' => $defaultColumns = array('nb_visits'),
|
||||
))
|
||||
);
|
||||
|
||||
$widgetsList->addWidgetConfig(
|
||||
$factory->createCustomWidget('getSparklines')
|
||||
->forceViewDataTable(Sparklines::ID)
|
||||
->setIsNotWidgetizable()
|
||||
->setName('Referrers_Type')
|
||||
->setSubcategoryId('General_Overview')
|
||||
->setOrder(10)
|
||||
);
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$idSubtable = Common::getRequestVar('idSubtable', false);
|
||||
$labelColumnTitle = $this->name;
|
||||
|
||||
switch ($idSubtable) {
|
||||
case Common::REFERRER_TYPE_SEARCH_ENGINE:
|
||||
$labelColumnTitle = Piwik::translate('General_ColumnKeyword');
|
||||
break;
|
||||
case Common::REFERRER_TYPE_SOCIAL_NETWORK:
|
||||
$labelColumnTitle = Piwik::translate('Referrers_ColumnSocial');
|
||||
break;
|
||||
case Common::REFERRER_TYPE_WEBSITE:
|
||||
$labelColumnTitle = Piwik::translate('Referrers_ColumnWebsite');
|
||||
break;
|
||||
case Common::REFERRER_TYPE_CAMPAIGN:
|
||||
$labelColumnTitle = Piwik::translate('Referrers_ColumnCampaign');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
$view->config->show_search = false;
|
||||
$view->config->show_offset_information = false;
|
||||
$view->config->show_pagination_control = false;
|
||||
$view->config->show_limit_control = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $labelColumnTitle);
|
||||
|
||||
$view->requestConfig->filter_limit = 10;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_subtable_when_show_goals = true;
|
||||
}
|
||||
|
||||
$this->configureFooterMessage($view);
|
||||
}
|
||||
|
||||
protected function configureFooterMessage(ViewDataTable $view)
|
||||
{
|
||||
if ($this->isSubtableReport) {
|
||||
// no footer message for subtables
|
||||
return;
|
||||
}
|
||||
|
||||
$out = '';
|
||||
Piwik::postEvent('Template.afterReferrerTypeReport', array(&$out));
|
||||
$view->config->show_footer_message = $out;
|
||||
}
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\Referrers\Columns\SearchEngine;
|
||||
|
||||
class GetSearchEngines extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new SearchEngine();
|
||||
$this->name = Piwik::translate('Referrers_SearchEngines');
|
||||
$this->documentation = Piwik::translate('Referrers_SearchEnginesReportDocumentation', '<br />');
|
||||
$this->actionToLoadSubTables = 'getKeywordsFromSearchEngineId';
|
||||
$this->hasGoalMetrics = true;
|
||||
$this->order = 7;
|
||||
|
||||
$this->subcategoryId = 'Referrers_SubmenuSearchEngines';
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->show_search = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 25;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_subtable_when_show_goals = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\SearchEngine;
|
||||
|
||||
class GetSearchEnginesFromKeywordId extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new SearchEngine();
|
||||
$this->name = Piwik::translate('Referrers_Keywords');
|
||||
$this->documentation = Piwik::translate('Referrers_KeywordsReportDocumentation', '<br />');
|
||||
$this->isSubtableReport = true;
|
||||
$this->order = 4;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_search = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
}
|
||||
|
||||
}
|
59
msd2/tracking/piwik/plugins/Referrers/Reports/GetSocials.php
Normal file
59
msd2/tracking/piwik/plugins/Referrers/Reports/GetSocials.php
Normal file
@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie;
|
||||
use Piwik\Plugins\Referrers\Columns\SocialNetwork;
|
||||
use Piwik\Report\ReportWidgetFactory;
|
||||
use Piwik\Widget\WidgetsList;
|
||||
|
||||
class GetSocials extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new SocialNetwork();
|
||||
$this->name = Piwik::translate('Referrers_Socials');
|
||||
$this->documentation = Piwik::translate('Referrers_WebsitesReportDocumentation', '<br />');
|
||||
$this->actionToLoadSubTables = 'getUrlsForSocial';
|
||||
$this->order = 11;
|
||||
|
||||
$this->subcategoryId = 'Referrers_Socials';
|
||||
}
|
||||
|
||||
public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
|
||||
{
|
||||
$widget = $factory->createWidget()->setName('Referrers_Socials');
|
||||
$widgetsList->addWidgetConfig($widget);
|
||||
}
|
||||
|
||||
public function getDefaultTypeViewDataTable()
|
||||
{
|
||||
return Pie::ID;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_pivot_by_subtable = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->show_goals = true;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 10;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_subtable_when_show_goals = true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\WebsitePage;
|
||||
|
||||
class GetUrlsForSocial extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new WebsitePage();
|
||||
$this->name = Piwik::translate('Referrers_Socials');
|
||||
$this->documentation = Piwik::translate('Referrers_WebsitesReportDocumentation', '<br />');
|
||||
$this->isSubtableReport = true;
|
||||
$this->order = 12;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_goals = true;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 10;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\Referrers\Columns\WebsitePage;
|
||||
|
||||
class GetUrlsFromWebsiteId extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new WebsitePage();
|
||||
$this->name = Piwik::translate('CorePluginsAdmin_Websites');
|
||||
$this->documentation = Piwik::translate('Referrers_WebsitesReportDocumentation', '<br />');
|
||||
$this->isSubtableReport = true;
|
||||
$this->order = 6;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_search = false;
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->tooltip_metadata_name = 'url';
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/**
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Referrers\Reports;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\Piwik;
|
||||
use Piwik\Plugin\ViewDataTable;
|
||||
use Piwik\Plugins\CoreVisualizations\Visualizations\HtmlTable;
|
||||
use Piwik\Plugins\Referrers\Columns\Website;
|
||||
use Piwik\Report\ReportWidgetFactory;
|
||||
use Piwik\Widget\WidgetsList;
|
||||
|
||||
class GetWebsites extends Base
|
||||
{
|
||||
protected function init()
|
||||
{
|
||||
parent::init();
|
||||
$this->dimension = new Website();
|
||||
$this->name = Piwik::translate('CorePluginsAdmin_Websites');
|
||||
$this->documentation = Piwik::translate('Referrers_WebsitesReportDocumentation', '<br />');
|
||||
$this->recursiveLabelSeparator = '/';
|
||||
$this->actionToLoadSubTables = 'getUrlsFromWebsiteId';
|
||||
$this->hasGoalMetrics = true;
|
||||
$this->order = 5;
|
||||
|
||||
$this->subcategoryId = 'Referrers_SubmenuWebsitesOnly';
|
||||
}
|
||||
|
||||
public function getDefaultTypeViewDataTable()
|
||||
{
|
||||
if (Common::getRequestVar('widget', 0, 'int')) {
|
||||
return parent::getDefaultTypeViewDataTable();
|
||||
}
|
||||
return HtmlTable\AllColumns::ID;
|
||||
}
|
||||
|
||||
public function configureView(ViewDataTable $view)
|
||||
{
|
||||
$view->config->show_exclude_low_population = false;
|
||||
$view->config->addTranslation('label', $this->dimension->getName());
|
||||
|
||||
$view->requestConfig->filter_limit = 25;
|
||||
|
||||
if ($view->isViewDataTableId(HtmlTable::ID)) {
|
||||
$view->config->disable_subtable_when_show_goals = true;
|
||||
}
|
||||
|
||||
$view->config->show_pivot_by_subtable = false;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user