Skip to content
Extraits de code Groupes Projets
Valider 4cad6558 rédigé par mattab's avatar mattab
Parcourir les fichiers

Adding setting for limiting Custom Variables report in the config file,...

Adding setting for limiting Custom Variables report in the config file, separate from the referrer config.
This is especially useful to fix an ecommerce bug where "Visits" don't display properly for all products, since we used to truncate after 50 rows.
Also sets by default to 1000 to ensure ecommerce tracking mostly work.
Refs #3569
parent e48c41ce
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -228,11 +228,15 @@ feedback_email_address = "hello@piwik.org" ...@@ -228,11 +228,15 @@ feedback_email_address = "hello@piwik.org"
; during archiving, Piwik will limit the number of results recorded, for performance reasons ; during archiving, Piwik will limit the number of results recorded, for performance reasons
; maximum number of rows for any of the Referers tables (keywords, search engines, campaigns, etc.) ; maximum number of rows for any of the Referers tables (keywords, search engines, campaigns, etc.)
; this limit will also be applied to the Custom Variables names and values reports
datatable_archiving_maximum_rows_referers = 1000 datatable_archiving_maximum_rows_referers = 1000
; maximum number of rows for any of the Referers subtable (search engines by keyword, keyword by campaign, etc.) ; maximum number of rows for any of the Referers subtable (search engines by keyword, keyword by campaign, etc.)
datatable_archiving_maximum_rows_subtable_referers = 50 datatable_archiving_maximum_rows_subtable_referers = 50
; maximum number of rows for the Custom Variables names report
datatable_archiving_maximum_rows_custom_variables = 1000
; maximum number of rows for the Custom Variables values reports
datatable_archiving_maximum_rows_subtable_custom_variables = 1000
; maximum number of rows for any of the Actions tables (pages, downloads, outlinks) ; maximum number of rows for any of the Actions tables (pages, downloads, outlinks)
datatable_archiving_maximum_rows_actions = 500 datatable_archiving_maximum_rows_actions = 500
; maximum number of rows for pages in categories (sub pages, when clicking on the + for a page category) ; maximum number of rows for pages in categories (sub pages, when clicking on the + for a page category)
......
...@@ -21,9 +21,8 @@ class Piwik_CustomVariables_Archiving ...@@ -21,9 +21,8 @@ class Piwik_CustomVariables_Archiving
function __construct() function __construct()
{ {
//TODO FIX $this->maximumRowsInDataTableLevelZero = Piwik_Config::getInstance()->General['datatable_archiving_maximum_rows_custom_variables'];
$this->maximumRowsInDataTableLevelZero = Piwik_Config::getInstance()->General['datatable_archiving_maximum_rows_referers']; $this->maximumRowsInSubDataTable = Piwik_Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_custom_variables'];
$this->maximumRowsInSubDataTable = Piwik_Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_referers'];
} }
public function archiveDay(Piwik_ArchiveProcessing_Day $archiveProcessing) public function archiveDay(Piwik_ArchiveProcessing_Day $archiveProcessing)
...@@ -32,7 +31,6 @@ class Piwik_CustomVariables_Archiving ...@@ -32,7 +31,6 @@ class Piwik_CustomVariables_Archiving
$table = $archiveProcessing->getDataTableWithSubtablesFromArraysIndexedByLabel($this->metricsByKeyAndValue, $this->metricsByKey); $table = $archiveProcessing->getDataTableWithSubtablesFromArraysIndexedByLabel($this->metricsByKeyAndValue, $this->metricsByKey);
$blob = $table->getSerialized( $blob = $table->getSerialized(
$this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable, $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable,
$columnToSort = Piwik_Archive::INDEX_NB_VISITS $columnToSort = Piwik_Archive::INDEX_NB_VISITS
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter