Closed Bug 1259953 Opened 9 years ago Closed 9 years ago

Make SUMO respect Do Not Track

Categories

(support.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: upwinxp, Assigned: giorgos)

Details

(Whiteboard: [ee-needtofix])

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.
Whiteboard: [ee-needtofix]
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)
OK! I'll work on this, thanks!
Assignee: nobody → giorgos
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
No longer depends on: 1283148
You need to log in before you can comment on or make changes to this bug.