PHP Класс Piwik\Tracker\VisitorRecognizer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $trustCookiesOnly, $visitStandardLength, $lookbackNSecondsCustom, $trackerAlwaysNewVisitor, Piwik\Tracker\Model $model, Piwik\EventDispatcher $eventDispatcher )
findKnownVisitor ( $configId, Piwik\Tracker\Visit\VisitProperties $visitProperties, Request $request )

Защищенные методы

Метод Описание
getWindowLookupThisVisit ( Request $request ) : array( By default, we look back 30 minutes to find a previous visitor (for performance reasons).
shouldLookupOneVisitorFieldOnly ( $isVisitorIdToLookup, Request $request )

Приватные методы

Метод Описание
getVisitFieldsPersist ( ) : array

Описание методов

__construct() публичный Метод

public __construct ( $trustCookiesOnly, $visitStandardLength, $lookbackNSecondsCustom, $trackerAlwaysNewVisitor, Piwik\Tracker\Model $model, Piwik\EventDispatcher $eventDispatcher )
$model Piwik\Tracker\Model
$eventDispatcher Piwik\EventDispatcher

findKnownVisitor() публичный Метод

public findKnownVisitor ( $configId, Piwik\Tracker\Visit\VisitProperties $visitProperties, Request $request )
$visitProperties Piwik\Tracker\Visit\VisitProperties
$request Request

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(

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

protected shouldLookupOneVisitorFieldOnly ( $isVisitorIdToLookup, Request $request )
$request Request