Conversation
docs/metrics/index.md
Outdated
Running included JavaScript from the net is asking for trouble (and is actually | ||
not allowed at all on addons.mozilla.org). | ||
|
||
Google [provides documentation for logging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use an example from the add-on code to highlight the Measurement Protocol instead of from the website (which actually does use the GA library).
Different experiments use different frameworks, which have their own interfaces (or none at all) to
|
docs/metrics/index.md
Outdated
# Overview | ||
|
||
Test Pilot loves metrics. Our whole purpose is to ask questions, measure and | ||
analyaze responses, and make recommendations. To that end, we have a few tools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
analyze
docs/metrics/index.md
Outdated
is just gravy. We use GA for all basic measuring, funnel tracking, | ||
click-through rates, and simple A/B testing. | ||
|
||
## Telemetry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add some context about what capital-T Telemetry means.
|
||
Google Analytics does a lot of great things generically, but comes up short | ||
when trying to do deep analysis on data, which is usually where those big | ||
defining questions lay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two other thing Telemetry does well:
- Correcting things we measure with other behaviors or attributes that we don't or can't measure
- Correcting for bias in our population. Test Pilot users are demonstrably power users, and Telemetry gives us data that can help us understand and correct for that.
docs/metrics/index.md
Outdated
to [clone these two bugs](https://bugzilla.mozilla.org/buglist.cgi?quicksearch=1297199%2C+1297200). | ||
|
||
The Measurement Team will be looking at the Metrics Plan you wrote to | ||
understand what is needed so it's important it includes the schema you'll be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needed, so it's important that it includes
docs/metrics/index.md
Outdated
```javascript | ||
app.sendToGA('event', { | ||
eventCategory: 'Menu Interactions', | ||
eventAction: 'drop-down menu', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The increasing tab size here is probably not what you intended.
docs/metrics/index.md
Outdated
## Google Analytics | ||
To use Google Analytics we recommend you use your own Google Analytics account | ||
to record data. This makes the transition easy when your experiment graduates | ||
from the Test Pilot program. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is the case, should we mention permissions? I'd think we want to make sure that the Test Pilot team has at least read access to each of these accounts.
docs/metrics/index.md
Outdated
|
||
We're all here to help. This document exists as documentation for us as much | ||
as anyone -- don't feel like you have to go at this alone, it just needs to be | ||
written down so we don't forget steps. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An emoticon and no emoji? What is this, 2013?
I pushed a new version of the proposal. The "Sending Data" section is new so please check that out. |
docs/metrics/index.md
Outdated
TODO: code here | ||
``` | ||
|
||
The testpilot.sendEvent() function accepts these parameters: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These fields are shared across the three systems with slightly different names so I think it will be easy to remap and send to all three as a base. We'll still need to add specific fields for additional experiment meta-data.
This doesn't get us every measurement we could want, but it gets us a lot of data quickly
docs/metrics/index.md
Outdated
## Sending Data | ||
|
||
The actual function to report event based data is called `testpilot.sendEvent()` and is | ||
provided by the `test-pilot-metrics` node module. To use it: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
testpilot-metrics
? As I recall, some engineering manager somewhere insisted that we don't hyphenate.
|
||
We're all here to help. This document exists as documentation for us as much | ||
as anyone -- don't feel like you have to go at this alone, it just needs to be | ||
written down so we don't forget steps. 😺 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌
|
||
## Google Analytics | ||
To use Google Analytics you'll need to have your Google Analytics credentials | ||
to record data. Using your own account here instead of a generic Test Pilot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that Mozilla has a special GA account that is extra privacy-preserving.
I think we either need to ask experiment authors to use the special non-tracking Mozilla instance of GA, or, if authors will use their own, regular GA accounts, we may need to talk to legal about revising our terms of service.
docs/metrics/index.md
Outdated
the appropriate endpoints. | ||
|
||
> TODO: | ||
> * need to specify what "system information" is, if for no other reason than we |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We get a lot of system information "for free" on Telemetry thanks to the environment data added to the ping.
I think a lot of that will be inaccessible to library code running in webextension-based experiments - assuming we wanted to gather & send some of it as context to GA or the Tiles Pipeline. Need to inventory what we can actually gather in that scenario. (Could be more than I think off the top of my head)
docs/metrics/index.md
Outdated
* `variant` (optional): An identifying string if you're running different | ||
variants. eg. `cohort-A` | ||
|
||
These paramters will be combined with other data (like a timestamp and system |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: parameters
docs/metrics/index.md
Outdated
variants. eg. `cohort-A` | ||
|
||
These paramters will be combined with other data (like a timestamp and system | ||
information) in the sentEvent() function and the broker will send the data to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: sendEvent
Are these docs deprecated by mozilla/testpilot-metrics#4? |
@ckprice I made some edits to this PR, I'll push them up in a bit |
Looks like 'event' needs to be replaced with 'method', per the Event Telemetry doc. I'm also changing the Once I've made those changes, I'll plan to land this PR. |
planning to land this later today |
OK, let's land this! |
PR for discussion. All comments/edits are welcome.