38
edits
Changes
→Events
Events capture key occurrences. They should be brief and simple, and should not contain sensitive or excess information. Context for events should come from the session (scope). An event can be created with four fields (via ''Telemetry.sendUIEvent''): action, method, extras, and timestamp.
* '''action''': name of the event. Should be brief and lowercase. If needed, you can make use of namespacing with a '-.' separator. Example event names: "panel-.switch", "panel-.enable", "panel-.disable", "panel-.install".
* '''method''' (Optional): used for user actions that can be performed in many ways. This field specifies the method in which the action was performed. For example, users can add an item to their reading list either by long-tapping the reader icon in the address bar, or from within reader mode. We would use the same event name for both user actions but specify two methods: "addressbar" and "readermode".