The Do Not Track (DNT) header is the proposed HTTP header field DNT that requests that a web application disable either its tracking or cross-site user tracking (the ambiguity remains unresolved) of an individual user.
The header field name is DNT and it currently accepts three values: 1 in case the user does not want to be tracked (opt out), 0 in case the user consents to being tracked (opt in), or null (no header sent) if the user has not expressed a preference.
If the DNT header is 1, we should definitely enforce a positive opt-in experience (since they have already opted out in their browser). If it's 0 we can simply display the banner with a dismiss button, since the user has already given consent in browser settings.
Comments
Comment #2
svenryen commentedComment #3
svenryen commentedHere is the patch.
Comment #6
svenryen commentedComment #7
nitrocad commented7.x patch is corrupt:
+ 'auto' => $this->t('Automatic. Respect the DNT (Do not track) setting in the browser, if present. Uses opt-in when DNT is 1 or not set, and consent by default when DNT is 0.'),should be: (without $this->)
+ 'auto' => t('Automatic. Respect the DNT (Do not track) setting in the browser, if present. Uses opt-in when DNT is 1 or not set, and consent by default when DNT is 0.'),Comment #10
svenryen commentedThanks for catching this. I committed a fix to the -dev branch.