diff options
Diffstat (limited to 'plugins/CoreHome/Tracker')
-rw-r--r-- | plugins/CoreHome/Tracker/VisitRequestProcessor.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/CoreHome/Tracker/VisitRequestProcessor.php b/plugins/CoreHome/Tracker/VisitRequestProcessor.php index ade0ab2301..69cef60230 100644 --- a/plugins/CoreHome/Tracker/VisitRequestProcessor.php +++ b/plugins/CoreHome/Tracker/VisitRequestProcessor.php @@ -120,6 +120,8 @@ class VisitRequestProcessor extends RequestProcessor $isNewVisit = $this->isVisitNew($visitProperties, $request, $this->visitorRecognizer->getLastKnownVisit()); $request->setMetadata('CoreHome', 'isNewVisit', $isNewVisit); + $request->setMetadata('CoreHome', 'lastKnownVisit', $this->visitorRecognizer->getLastKnownVisit()); + if (!$isNewVisit) { // only copy over known visitor's information, if this is for an ongoing visit $this->visitorRecognizer->updateVisitPropertiesFromLastVisitRow($visitProperties); } |