Add Telemetry for Track Changes M1

RESOLVED FIXED in Firefox 65

Status

enhancement
P2
normal
RESOLVED FIXED
6 months ago
6 months ago

People

(Reporter: rcaliman, Assigned: rcaliman)

Tracking

unspecified
Firefox 65
Dependency tree / graph

Firefox Tracking Flags

(firefox65 fixed)

Details

Attachments

(2 attachments)

Assignee

Description

6 months ago
For the Changes panel introduced with Firefox 65 in the Inspector, we want to have the same level of basic telemetry to compare it with its sibling sidebar panels and some custom telemetry to help identify how effective it is at solving user needs.

Basic:
- Number of times the Changes has been opened.
- How long has the Changes panel been active (seconds)

Custom:
- How long has the Changes panel been active (seconds) **and** the number of changes made in a DevTools session.

We want to test the hypothesis that users are more confident to make a larger number of changes in a single DevTools session when they know their changes are collected and summarized in one place - the Changes panel.

We expect to see a correlation between meaningful time spent in the Changes panel and an increased in the number of CSS changes.

For M2 of Track Changes we will have better mechanisms to test engagement with the Changes panel, actions like copy, export, persist, etc.
Assignee

Comment 1

6 months ago
Adds entries to Histograms.json, Scalars.yaml and Events.yaml to
account for the Changes panel when measuring time spent with the panel
in view and opening count. This leverages pre-existing instrumentation
used for other Inspector sidebar panels.
Assignee

Comment 2

6 months ago
There are a few technical complexities for implementing the custom telemetry case explained in the description. 

I'll split the commits and data request forms and into two distinct parts (part 1 for basic, part 2 for custom), to ensure the basic telemetry gets clearance to launch with Firefox 65 in case the more complex one gets delayed.
Assignee

Comment 3

6 months ago
Hi Chris,

May I please have a review from you on this proposal to add basic telemetry to the new Changes panel in the DevTools Inspector sidebar? This request is for tracking opening count and time spent in the panel, similar to instrumentation already in place for the other Inspector sidebar panels.

I intend to follow up with a second data review request form (or an updated one, if you prefer) for the custom case explained in the description once I figure out how to do it.

The reason for splitting the request and implementation into two parts is to ensure we can release this feature instrumented with at least the basic telemetry when it goes to Firefox 65 Beta. Some technical complexities and upcoming travel for All Hands may delay the second part.
Attachment #9027936 - Flags: review?(chutten)

Comment 4

6 months ago
Comment on attachment 9027936 [details]
data-review-part1.md

DATA COLLECTION REVIEW RESPONSE:

    Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate? 

Yes. These collections are Telemetry which means they are documented in their definitions files (Histograms.json, Scalars.yaml), in the Probe Dictionary, and on telemetry.mozilla.org's Measurement dashboard.

    Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. These collections are Telemetry which means they can be controlled in Firefox's Preferences.

    If the request is for permanent data collection, is there someone who will monitor the data over time?

Yes, Martin Balfanz.

    Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 2, Interaction.

    Is the data collection request for default-on or default-off?

Default on, all channels.

    Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?

No.

    Is the data collection covered by the existing Firefox privacy notice? 

Yes.

    Does there need to be a check-in in the future to determine whether to renew the data?

No. These collections are permanent.

---
Result: datareview+
Attachment #9027936 - Flags: review?(chutten) → review+

Comment 5

6 months ago
(In reply to Razvan Caliman [:rcaliman] from comment #3)
> Created attachment 9027936 [details]
> data-review-part1.md
> 
> Hi Chris,
> 
> May I please have a review from you on this proposal to add basic telemetry
> to the new Changes panel in the DevTools Inspector sidebar? This request is
> for tracking opening count and time spent in the panel, similar to
> instrumentation already in place for the other Inspector sidebar panels.
> 
> I intend to follow up with a second data review request form (or an updated
> one, if you prefer) for the custom case explained in the description once I
> figure out how to do it.
> 
> The reason for splitting the request and implementation into two parts is to
> ensure we can release this feature instrumented with at least the basic
> telemetry when it goes to Firefox 65 Beta. Some technical complexities and
> upcoming travel for All Hands may delay the second part.

I think a second review request would make the most sense.
Assignee

Comment 6

6 months ago
(In reply to Chris H-C :chutten from comment #5)
> (In reply to Razvan Caliman [:rcaliman] from comment #3)
> > Created attachment 9027936 [details]
> > data-review-part1.md
> > 
> > Hi Chris,
> > 
> > May I please have a review from you on this proposal to add basic telemetry
> > to the new Changes panel in the DevTools Inspector sidebar? This request is
> > for tracking opening count and time spent in the panel, similar to
> > instrumentation already in place for the other Inspector sidebar panels.
> > 
> > I intend to follow up with a second data review request form (or an updated
> > one, if you prefer) for the custom case explained in the description once I
> > figure out how to do it.
> > 
> > The reason for splitting the request and implementation into two parts is to
> > ensure we can release this feature instrumented with at least the basic
> > telemetry when it goes to Firefox 65 Beta. Some technical complexities and
> > upcoming travel for All Hands may delay the second part.
> 
> I think a second review request would make the most sense.

I'm going to land part 1 with the basic telemetry as-is. For the custom case, I will follow up in another bug. Thank you for the review!

Try run for part 1: https://treeherder.mozilla.org/#/jobs?repo=try&revision=4bf2df3b650770d8615ee773b736c21c8e7ff926

Comment 7

6 months ago
Pushed by rcaliman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dc482031a974
(Part 1) Add basic telemetry for Changes panel (time spent and open count). r=pbro

Comment 8

6 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/dc482031a974
Status: ASSIGNED → RESOLVED
Last Resolved: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.