PHP Class Piwik\Tracker\VisitorRecognizer

Exibir arquivo Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( $trustCookiesOnly, $visitStandardLength, $lookbackNSecondsCustom, $trackerAlwaysNewVisitor, Piwik\Tracker\Model $model, Piwik\EventDispatcher $eventDispatcher )
findKnownVisitor ( $configId, Piwik\Tracker\Visit\VisitProperties $visitProperties, Request $request )

Protected Methods

Method Description
getWindowLookupThisVisit ( Request $request ) : array( By default, we look back 30 minutes to find a previous visitor (for performance reasons).
shouldLookupOneVisitorFieldOnly ( $isVisitorIdToLookup, Request $request )

Private Methods

Method Description
getVisitFieldsPersist ( ) : array

Method Details

__construct() public method

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

findKnownVisitor() public method

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

getWindowLookupThisVisit() protected method

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
return array(

shouldLookupOneVisitorFieldOnly() protected method

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