When " Consent method" selected as "Automatic"
Screen

and DNT header is 0 then "Consent by default. Don’t provide any option to opt out" option is not working.

Comments

visabhishek created an issue. See original summary.

visabhishek’s picture

Status: Active » Needs review
StatusFileSize
new461 bytes

After applying patch issue resolved for me.

visabhishek’s picture

Title: DMT 0 Is not working » DNT 0 Is not working
Issue summary: View changes
svenryen’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, @visabhishek - just out of curiosity, which browser sends a DNT 0 header?

visabhishek’s picture

Hi svenryen,

As per https://en.wikipedia.org/wiki/Do_Not_Track, we have 3 values for DNT headers ( No tag, 0, and 1). Even in eu_cookie_compliance also explained about"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."

So just for curiosity, I have installed https://chrome.google.com/webstore/detail/do-not-track/epaickocpjcjjiopb... for my crome. This is providing 0 and 1 value for DNT header. (Need to clear drupal cache after changing the value, at least in my case)

svenryen’s picture

Thanks. Just wondering, since I haven't seen a browser actually send the "DNT: 0" header (just 1 or no header).

svenryen’s picture

StatusFileSize
new597 bytes

Hi again! I improved your patch a little bit so that it also handles the case where the DNT header is missing (NULL).

  • svenryen committed a38b83d on 8.x-1.x
    Issue #2974714 by visabhishek, svenryen: DNT 0 Is not working
    
svenryen’s picture

Status: Reviewed & tested by the community » Fixed

  • svenryen committed c6deb0c on 7.x-1.x
    Issue #2974714 by visabhishek, svenryen: DNT 0 Is not working
    

  • svenryen committed 884a355 on 7.x-2.x
    Merge branch '7.x-1.x' into 7.x-2.x
    
    * 7.x-1.x:
    Issue #2975382 by...
  • svenryen committed c6deb0c on 7.x-2.x
    Issue #2974714 by visabhishek, svenryen: DNT 0 Is not working
    

Status: Fixed » Closed (fixed)

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