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

setKeepURLFragmentsGlobal() public method

Sets whether the default behavior should be to keep URL fragments when tracking or not.
public setKeepURLFragmentsGlobal ( $enabled )
$enabled bool If true, the default behavior will be to keep URL fragments when tracking. If false, the default behavior will be to remove them.
    public function setKeepURLFragmentsGlobal($enabled)
    {
        Piwik::checkUserHasSuperUserAccess();
        // update option
        Option::set(self::OPTION_KEEP_URL_FRAGMENTS_GLOBAL, $enabled);
        // make sure tracker cache will reflect change
        Cache::deleteTrackerCache();
    }