diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-07-21 21:59:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 21:59:46 +0300 |
commit | fa285c13550fd276e88045d9fc3593927c342cea (patch) | |
tree | 9561853419a99b9216580eb8da9b82f8f8cc2944 /plugins | |
parent | 1d24a1532135b7f8e465990aa40863fb28621951 (diff) |
Backport userId to overwrite visitorId feature (#16226)
* Backport userId to overwrite visitorId feature
* fix ui test
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/CoreHome/Tracker/VisitRequestProcessor.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/CoreHome/Tracker/VisitRequestProcessor.php b/plugins/CoreHome/Tracker/VisitRequestProcessor.php index 30c5d0fd3a..b7875e087a 100644 --- a/plugins/CoreHome/Tracker/VisitRequestProcessor.php +++ b/plugins/CoreHome/Tracker/VisitRequestProcessor.php @@ -17,6 +17,7 @@ use Piwik\Tracker\Cache; use Piwik\Tracker\Request; use Piwik\Tracker\RequestProcessor; use Piwik\Tracker\Settings; +use Piwik\Tracker\TrackerConfig; use Piwik\Tracker\Visit\VisitProperties; use Piwik\Tracker\VisitExcluded; use Piwik\Tracker\VisitorRecognizer; @@ -189,7 +190,8 @@ class VisitRequestProcessor extends RequestProcessor return true; } - if (!$this->lastUserIdWasSetAndDoesMatch($visitProperties, $request)) { + if (!TrackerConfig::getConfigValue('enable_userid_overwrites_visitorid') + && !$this->lastUserIdWasSetAndDoesMatch($visitProperties, $request)) { Common::printDebug("Visitor detected, but last user_id does not match..."); return true; } |