public_html/piwik/core/Tracker/VisitExcluded.php
/**
     * Returns true if the specified user agent should be excluded for the current site or not.
     *
     * 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.
     *
     * @internal param string $this ->userAgent The user agent string.
     * @return bool
     */
Returns true if the specified user agent should be excluded for the current site or not.
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.

@internal param string $this ->userAgent The user agent string.
@return bool
Returns true if the specified user agent should be excluded for the current site or not . 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 . @internal param string $this - > userAgent The user agent string . @return bool
protected function isUserAgentExcluded()
    {
        $websiteAttributes = Cache::getCacheWebsiteAttributes($this->idSite);
        if (!empty($websiteAttributes['excluded_user_agents'])) {
            foreach ($websiteAttributes['excluded_user_agents'] as $excludedUserAgent) {
                if (stripos($this->userAgent, $excludedUserAgent) !== false) {
                    return true;
                }
            }
        }
        return false;
    }
protected function isUserAgentExcluded ( ) { $ websiteAttributes = Cache :: getCacheWebsiteAttributes ( $ this -> idSite ) ; if ( ! empty ( $ websiteAttributes [ 'excluded_user_agents' ] ) ) { foreach ( $ websiteAttributes [ 'excluded_user_agents' ] as $ excludedUserAgent ) { if ( stripos ( $ this -> userAgent , $ excludedUserAgent ) !== false ) { return true ; } } } return false ; }
Returns true if the specified user agent should be excluded for the current site or not.
Returns true if the specified user agent should be excluded for the current site or not .
// if the excluded user agent string part is in this visit's user agent, this visit should be excluded