Closed Bug 1259786 Opened 9 years ago Closed 9 years ago

Send telemetry data in new Heartbeat action

Categories

(Shield :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: osmose, Unassigned)

References

Details

The existing heartbeat recipe sends some extra data to telemetry via the call to showHeartbeat: https://github.com/mozilla/self-repair-server/blob/2bd2b44508110152f4bc724cbec64c8276a6da5f/src/recipes/heartbeat-by-user-first-impression/index.js#L218 The survey ID appears to be a unique slug of some kind. Recipes don't have any unique slugs in the database, so I think instead we'll need to add another argument to the action and have admins manually enter the survey ID. The variation ID seems to be a version number that is increased every time a change is made to the survey code. We have a revision_id value on recipes that increases automatically whenever they're saved that we can use for this. However, the name of the parameter suggests that it's meant to identify which variant of the survey the user has received. Using the revision_id would give the same variation ID even if we sent three survey variants to the user and they only see one of them. Alternatively, we could use the positional ID of the survey variants (survey 1, survey 2, etc. in the admin interface) and pass that as the variant ID. This would run into problems when someone in the admin changes those variants, because we'd be using different language but the same ID. But maybe that's okay.
gregglind: Can you shed some light on the purpose of these values and what data we should be passing for them with the new Heartbeat action?
Flags: needinfo?(glind)
Some notes on heartbeat as she is spoke: - survey_id: is a controlled field. Unless it's whitelisted, it won't upload. (controlled at: https://input.mozilla.org/en-US/analytics/hbsurveys) This *should* be a 'recipe' level field, probably. - question_id, question_text, variation_id: 3 fields to 'say more', so that `group by` works in analysis well. http://fjord.readthedocs.org/en/latest/hb_api.html
Flags: needinfo?(glind)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: SHIELD → General
Product: Websites → Normandy
You need to log in before you can comment on or make changes to this bug.