Piwik\Plugins\PrivacyManager\DoNotTrackHeaderChecker::checkHeaderInTracker PHP Method

checkHeaderInTracker() public method

Checks for DoNotTrack headers and if found, sets $exclude to true.
public checkHeaderInTracker ( &$exclude )
    public function checkHeaderInTracker(&$exclude)
    {
        if ($exclude) {
            Common::printDebug("Visit is already excluded, no need to check DoNotTrack support.");
            return;
        }
        $exclude = $this->isDoNotTrackFound();
        if ($exclude) {
            IgnoreCookie::deleteThirdPartyCookieUIDIfExists();
            // this is an optional supplement to the site's tracking status resource at:
            //     /.well-known/dnt
            // per Tracking Preference Expression
            //Tracking Perference Expression has been updated to require Tk: N rather than Tk: 1
            Common::sendHeader('Tk: N');
        }
    }