Make SUMO respect Do Not Track

RESOLVED FIXED

Status

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: upwinxp, Assigned: giorgos)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [ee-needtofix])

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160322075646

Steps to reproduce:

- Make sure that Do Not Track (DNT) is disabled in privacy options.
- Visit SUMO with Tracking Protection enabled.


Actual results:

"https://ssl.google-analytics.com/ga.js" is blocked by Tracking Protection.
It's a shame for a Mozilla website to disrespect the setting we're encouraging other sites to respect.


Expected results:

We can keep trackers but should not load them when DNT is enabled. Mozilla.org works that way, too.
There is are two DNT solutions available https://pypi.python.org/pypi/django-donottrack/0.1 and https://github.com/mozilla/django-dnt. Which would you recommend, mythomon?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(mcooper)
I don't know enough about DNT to specify any particular approach or library.
Flags: needinfo?(mcooper)
OK, thank you. I will put it in my list and look on both.
(Assignee)

Updated

2 years ago
Whiteboard: [ee-needtofix]
(Assignee)

Comment 4

2 years ago
Bedrock (www.mozilla.org) solves the problem nicely:

 1. Identifies whether DNT is enabled, handling any known anomalies (i.e. with IE) 

https://github.com/mozilla/bedrock/blob/8c57010ee75d132c875a537744d20109e67745e4/tests/unit/spec/base/dnt-helper.js

 2. Wraps any tracking code, i.e. Google Analytics, with 

if (!_dntEnabled()) { tracking_code (); })
https://github.com/schalkneethling/bedrock/blob/b5735136df5a4326982f98ea56a7d68500f2c2ed/bedrock/base/templates/includes/google-analytics.html#L17

We can follow this paradigm and copy code from our friends in bedrock.

Michal is this something you'd like to work on?
Flags: needinfo?(mstanke)
Nice.

Yes, this looks as something I can do, but it might take me few weeks to get to it. If you think this needs to be done earlier, do not wait for me.
Flags: needinfo?(mstanke)
(Assignee)

Comment 6

2 years ago
OK! I'll work on this, thanks!
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
(Assignee)

Comment 7

2 years ago
https://github.com/mozilla/kitsune/commit/3b39b76e664e59d3eb9d4f987c58c9b5d2738751
Status: ASSIGNED → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED

Updated

2 years ago
No longer depends on: 1283148
You need to log in before you can comment on or make changes to this bug.