diff --git a/plugins/Referers/Referers.php b/plugins/Referers/Referers.php
index <HASH>..<HASH> 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']]);
 		}
fixing bug in referer detection, only one URL per referring domain was counted

git-svn-id: <URL>