Piwik\Plugins\SitesManager\API::setSiteSpecificUserAgentExcludeEnabled PHP Method

setSiteSpecificUserAgentExcludeEnabled() public method

Sets whether it should be allowed to exclude different user agents for different websites.
    public function setSiteSpecificUserAgentExcludeEnabled($enabled)
    {
        Piwik::checkUserHasSuperUserAccess();
        // update option
        Option::set(self::OPTION_SITE_SPECIFIC_USER_AGENT_EXCLUDE_ENABLE, $enabled);
        // make sure tracker cache will reflect change
        Cache::deleteTrackerCache();
    }