PHP Class Piwik\Tracker\VisitExcluded

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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

Méthode Description
getGoogleBotIpRanges ( )
isChromeDataSaverUsed ( Piwik\Network\IP $ip )
isIpInRange ( )

Method Details

__construct() public méthode

public __construct ( Request $request )
$request Request

getBotIpRanges() protected méthode

protected getBotIpRanges ( )

isExcluded() public méthode

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

isIgnoreCookieFound() protected méthode

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

isNonHumanBot() protected méthode

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

isPrefetchDetected() protected méthode

protected isPrefetchDetected ( )

isReferrerSpamExcluded() protected méthode

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

isUrlExcluded() protected méthode

Checks if request URL is excluded
protected isUrlExcluded ( ) : boolean
Résultat boolean

isUserAgentExcluded() protected méthode

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
Résultat boolean

isVisitorIpExcluded() protected méthode

Checks if the visitor ip is in the excluded list
protected isVisitorIpExcluded ( ) : boolean
Résultat boolean