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:
Diffstat (limited to 'plugins/Referrers/Columns/Base.php')
-rw-r--r--plugins/Referrers/Columns/Base.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Referrers/Columns/Base.php b/plugins/Referrers/Columns/Base.php
index 655ea20449..8da2c79bc3 100644
--- a/plugins/Referrers/Columns/Base.php
+++ b/plugins/Referrers/Columns/Base.php
@@ -288,8 +288,11 @@ abstract class Base extends VisitDimension
return false;
}
+ $site = Cache::getCacheWebsiteAttributes($this->idsite);
+ $excludeUnknowns = $site['exclude_unknown_urls'];
+
// fallback logic if the referrer domain is not known to any site to not break BC
- if (isset($this->currentUrlParse['host'])) {
+ if (!$excludeUnknowns && isset($this->currentUrlParse['host'])) {
// this might be actually buggy if first thing tracked is eg an outlink and referrer is from that site
$currentHost = Common::mb_strtolower($this->currentUrlParse['host']);
if ($currentHost == Common::mb_strtolower($this->referrerHost)) {