Closed
Bug 1384843
Opened 7 years ago
Closed 7 years ago
Respect Telemetry opt-out and don't collect metrics
Categories
(Snippets :: Service, enhancement)
Snippets
Service
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: giorgos, Unassigned)
References
Details
If users have opt-ed out form Telemetry we should not collect any metrics. Target for this is Activity Stream which will gradually take over about:home and about:newtab
Reporter | ||
Comment 1•7 years ago
|
||
Benjamin,
we want to collect snippet metrics (impressions, clicks, etc) in Activity Stream only for users who have opted in Telemetry.
Can you please advise which pref is the right one to monitor to check if users opted-in Telemetry?
Is it
- datareporting.healthreport.uploadEnabled
- datareporting.policy.dataSubmissionEnabled
or another one?
Thanks
Flags: needinfo?(benjamin)
Comment 2•7 years ago
|
||
Whatever the checkbox in prefs toggles, but I don't remember the technical details -> gfritzsche
Related, I just want to clarify terminology: this checkbox is *opt-out* (default-on), not opt-in.
Flags: needinfo?(benjamin) → needinfo?(gfritzsche)
Comment 3•7 years ago
|
||
I'm not sure what exact setting you are looking for.
Are you looking to collect the metrics for all users that did not opt out?
Please don't use the prefs directly, instead use:
- for "is opt-out data enabled?": Services.telemetry.canRecordBase
- for "is opt-in data enabled?": Services.telemetry.canRecordExtended
Flags: needinfo?(gfritzsche)
Reporter | ||
Comment 4•7 years ago
|
||
OK We'll use Services.telemetry.canRecordBase and only collect metrics if that's set to True.
Updated•7 years ago
|
Comment 5•7 years ago
|
||
Is there a way to observe changes in Services.telemetry.canRecordBase?
Flags: needinfo?(gfritzsche)
Comment 6•7 years ago
|
||
Not currently. We can add it though, you could file a bug for it in Toolkit::Telemetry.
Flags: needinfo?(gfritzsche)
Comment 7•7 years ago
|
||
Commits pushed to master at https://github.com/mozmeao/snippets-service
https://github.com/mozmeao/snippets-service/commit/95b04094463b42995389a8ef8ad5be077eae8001
[fix bug 1384843] Don't collect metrics if user have opted out from telemetry.
See also https://github.com/mozilla/activity-stream/commit/aeee212d3f0c4ede4647e065af8a328ca6f5bc11
https://github.com/mozmeao/snippets-service/commit/94556703e0c24c21171150c4ecb73cd143c7270e
Merge pull request #262 from glogiotatidis/telemetryEnalbed
[fix bug 1384843] Don't collect metrics if user have opted out from telemetry
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•