Piwik\Tracker\VisitorRecognizer::getWindowLookupThisVisit PHP Метод

getWindowLookupThisVisit() защищенный Метод

In some cases, it is useful to look back and count unique visitors more accurately. You can set custom lookback window in [Tracker] window_look_back_for_visitor The returned value is the window range (Min, max) that the matched visitor should fall within
protected getWindowLookupThisVisit ( Request $request ) : array(
$request Request
Результат array(
    protected function getWindowLookupThisVisit(Request $request)
    {
        $lookAheadNSeconds = $this->visitStandardLength;
        $lookBackNSeconds = $this->visitStandardLength;
        if ($this->lookBackNSecondsCustom > $lookBackNSeconds) {
            $lookBackNSeconds = $this->lookBackNSecondsCustom;
        }
        $timeLookBack = date('Y-m-d H:i:s', $request->getCurrentTimestamp() - $lookBackNSeconds);
        $timeLookAhead = date('Y-m-d H:i:s', $request->getCurrentTimestamp() + $lookAheadNSeconds);
        return array($timeLookBack, $timeLookAhead);
    }