Skip to content
Extraits de code Groupes Projets
Valider f5f551c3 rédigé par BeezyT's avatar BeezyT
Parcourir les fichiers

Refs #2633 Removed recognition of available segments on visits

git-svn-id: http://dev.piwik.org/svn/trunk@5116 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 04a9da10
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -91,9 +91,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing ...@@ -91,9 +91,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing
if (!$segmentation || if (!$segmentation ||
($segmentation && ($reportScope == 'visit' || !$reportScope))) ($segmentation && ($reportScope == 'visit' || !$reportScope)))
{ {
$this->checkSegmentationIsAvailable('visits', $segment,
$this->getSegmentsAvailableForVisits());
$data = $this->getBasicMetricsForVisitScope($segmentationWhere, $segmentationBind); $data = $this->getBasicMetricsForVisitScope($segmentationWhere, $segmentationBind);
} }
...@@ -107,10 +104,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing ...@@ -107,10 +104,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing
else if ($reportScope == 'all') else if ($reportScope == 'all')
{ {
$this->checkSegmentationIsAvailable('all scopes', $segment, array_merge(
$this->getSegmentsAvailableForVisits(),
$this->getSegmentsAvailableForActions()));
// @TODO: calculations are inaccurate if segment matches both page and visit. // @TODO: calculations are inaccurate if segment matches both page and visit.
// is this important? // is this important?
// not if the values returned by the api are taken from the archived tables // not if the values returned by the api are taken from the archived tables
...@@ -480,35 +473,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing ...@@ -480,35 +473,6 @@ class Piwik_ArchiveProcessing_Day extends Piwik_ArchiveProcessing
return $allowedSegments; return $allowedSegments;
} }
protected function getSegmentsAvailableForVisits()
{
// @TODO: complete list
$allowedSegments = array(
'idvisitor',
'referer_type',
'referer_name',
'referer_keyword',
'visitor_returning',
'visitor_days_since_first',
'visitor_days_since_order',
'visitor_count_visits',
'visit_goal_buyer',
'location_country',
'location_continent',
'custom_var_k1',
'custom_var_v1',
'custom_var_k2',
'custom_var_v2',
'custom_var_k3',
'custom_var_v3',
'custom_var_k4',
'custom_var_v4',
'custom_var_k5',
'custom_var_v5',
);
return $allowedSegments;
}
protected function getSegmentsAvailableForConversions() protected function getSegmentsAvailableForConversions()
{ {
$allowedSegments = array( $allowedSegments = array(
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter