PHP Class Piwik\Tracker\VisitExcluded

Mostra file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( Request $request )
isExcluded ( ) : boolean Test if the current visitor is excluded from the statistics.

Protected Methods

Method Description
getBotIpRanges ( )
isIgnoreCookieFound ( ) : boolean Looks for the ignore cookie that users can set in the Piwik admin screen.
isNonHumanBot ( ) : boolean Live/Bing/MSN bot and Googlebot are evolving to detect cloaked websites.
isPrefetchDetected ( )
isReferrerSpamExcluded ( ) : boolean Returns true if the Referrer is a known spammer.
isUrlExcluded ( ) : boolean Checks if request URL is excluded
isUserAgentExcluded ( ) : boolean Returns true if the specified user agent should be excluded for the current site or not.
isVisitorIpExcluded ( ) : boolean Checks if the visitor ip is in the excluded list

Private Methods

Method Description
getGoogleBotIpRanges ( )
isChromeDataSaverUsed ( Piwik\Network\IP $ip )
isIpInRange ( )

Method Details

__construct() public method

public __construct ( Request $request )
$request Request

getBotIpRanges() protected method

protected getBotIpRanges ( )

isExcluded() public method

Plugins can for example exclude visitors based on the - IP - If a given cookie is found
public isExcluded ( ) : boolean
return boolean True if the visit must not be saved, false otherwise

isIgnoreCookieFound() protected method

Looks for the ignore cookie that users can set in the Piwik admin screen.
protected isIgnoreCookieFound ( ) : boolean
return boolean

isNonHumanBot() protected method

As a result, these sophisticated bots exhibit characteristics of browsers (cookies enabled, executing JavaScript, etc).
See also: DeviceDetector\Parser\Bot
protected isNonHumanBot ( ) : boolean
return boolean

isPrefetchDetected() protected method

protected isPrefetchDetected ( )

isReferrerSpamExcluded() protected method

Returns true if the Referrer is a known spammer.
protected isReferrerSpamExcluded ( ) : boolean
return boolean

isUrlExcluded() protected method

Checks if request URL is excluded
protected isUrlExcluded ( ) : boolean
return boolean

isUserAgentExcluded() protected method

Visits whose user agent string contains one of the excluded_user_agents strings for the site being tracked (or one of the global strings) will be excluded.
protected isUserAgentExcluded ( ) : boolean
return boolean

isVisitorIpExcluded() protected method

Checks if the visitor ip is in the excluded list
protected isVisitorIpExcluded ( ) : boolean
return boolean