PHP Класс Piwik\Tracker\VisitExcluded

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

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

Метод Описание
__construct ( Request $request )
isExcluded ( ) : boolean Test if the current visitor is excluded from the statistics.

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

Метод Описание
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

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

Метод Описание
getGoogleBotIpRanges ( )
isChromeDataSaverUsed ( Piwik\Network\IP $ip )
isIpInRange ( )

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

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

public __construct ( Request $request )
$request Request

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

protected getBotIpRanges ( )

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

Plugins can for example exclude visitors based on the - IP - If a given cookie is found
public isExcluded ( ) : boolean
Результат boolean True if the visit must not be saved, false otherwise

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

Looks for the ignore cookie that users can set in the Piwik admin screen.
protected isIgnoreCookieFound ( ) : boolean
Результат boolean

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

As a result, these sophisticated bots exhibit characteristics of browsers (cookies enabled, executing JavaScript, etc).
См. также: DeviceDetector\Parser\Bot
protected isNonHumanBot ( ) : boolean
Результат boolean

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

protected isPrefetchDetected ( )

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

Returns true if the Referrer is a known spammer.
protected isReferrerSpamExcluded ( ) : boolean
Результат boolean

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

Checks if request URL is excluded
protected isUrlExcluded ( ) : boolean
Результат boolean

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

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
Результат boolean

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

Checks if the visitor ip is in the excluded list
protected isVisitorIpExcluded ( ) : boolean
Результат boolean