Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-11-27 19:42:30 +0300
committermatt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2008-11-27 19:42:30 +0300
commit1a3477ef9633fcea01d1632b9bfb60d241d2f6cd (patch)
tree7ec0731ea0956b2488a7e85c4ff2896ef43a47e5 /plugins/Referers/Referers.php
parentda46cbf5f502612eb7025ef7d033bf151f2f5ff8 (diff)
fixing bug in referer detection, only one URL per referring domain was counted
Diffstat (limited to 'plugins/Referers/Referers.php')
-rw-r--r--plugins/Referers/Referers.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/Referers/Referers.php b/plugins/Referers/Referers.php
index bafaa7700a..fe23422512 100644
--- a/plugins/Referers/Referers.php
+++ b/plugins/Referers/Referers.php
@@ -139,7 +139,7 @@ class Piwik_Referers extends Piwik_Plugin
FROM ".$archiveProcessing->logTable."
WHERE visit_server_date = ?
AND idsite = ?
- GROUP BY referer_type, referer_name, referer_keyword
+ GROUP BY referer_type, referer_name, referer_url, referer_keyword
ORDER BY nb_visits DESC";
$query = $archiveProcessing->db->query($query, array( $archiveProcessing->strDateStart, $archiveProcessing->idsite ));
@@ -209,7 +209,6 @@ class Piwik_Referers extends Piwik_Plugin
$archiveProcessing->updateInterestStats( $row, $interestByCampaign[$row['referer_name']]);
break;
}
-
if(!isset($interestByType[$row['referer_type']] )) $interestByType[$row['referer_type']] = $archiveProcessing->getNewInterestRow();
$archiveProcessing->updateInterestStats($row, $interestByType[$row['referer_type']]);
}