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

svenryen created an issue. See original summary.

svenryen’s picture

Issue summary: View changes

  • svenryen committed dd5c8c9 on 8.x-1.x
    Issue #2953753 by svenryen: Add Do-Not-Track header support
    

  • svenryen committed 6f80636 on 7.x-1.x
    Issue #2953753 by svenryen: Add Do-Not-Track header support
    
svenryen’s picture

Status: Active » Fixed
nitrocad’s picture

7.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.'),

  • svenryen committed 221ce24 on 7.x-2.x
    Merge branch '7.x-1.x' into 7.x-2.x
    
    * 7.x-1.x:
    Issue #2953753 by...
  • svenryen committed 6f80636 on 7.x-2.x
    Issue #2953753 by svenryen: Add Do-Not-Track header support
    

  • svenryen committed e524a34 on 7.x-2.x
    Issue #2953753 by svenryen: Add Do-Not-Track header support
    
svenryen’s picture

Thanks for catching this. I committed a fix to the -dev branch.

  • svenryen committed caee3f7 on 7.x-1.x
    Issue #2953753 by svenryen: Add Do-Not-Track header support
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.