Firefox Lockwise for iOS Metrics Plan
Last Updated: May 1, 2018
This is the metrics collection plan for the Lockbox iOS app. It documents all events that are planned to be collected through telemetry. It will be updated periodically to reflect all new and planned data collection.
Analysis
Data collection is done solely for the purpose of product development, improvement and maintenance.
We will analyze the data described in this doc primarily with the purpose of (dis)confirming the following hypothesis:
If Firefox users have access to their browser-saved passwords, outside of the mobile browser, then they will use those passwords to log into accounts (both in mobile browsers and in apps). We will know this to be true when copy credentials (username or password) is the most frequent action taken in the app.
Note that because the first version of the app will not allow for "auto-filling" of credentials, the copy events (and to a lesser extent, the password reveal events) are the best signal we have that users are gaining the intended value from the app.
In service to validating the above hypothesis, we plan on answering these specific questions, given the data we plan to collect (see List of Proposed Events):
Note that when referring to copying of "credentials", we mean copying of either usernames or passwords.
- Are users using Lockbox to retrieve credentials?
- For different intervals of time (e.g. day, week, month), what is:
- The average rate with which a user copies a credential or reveals a password
- The distribution of above rates across all users
- For different intervals of time (e.g. day, week, month), what is:
- Pending the implementation of a share sheet, how often do users access Lockbox via a mobile browser?
- Out of all the times a credential was copied, how often was it a result of tap on the share sheet?
- This will help us understand whether users are primarily accessing credentials for use in a browser or with third party apps.
- Out of all the times a credential was copied, how often was it a result of tap on the share sheet?
- Once downloaded, do users continue to use the app? (i.e., how well are they retained?)
- We will count a user as retained in a given time interval if they perform one of the following actions:
- Display the credential list
- Tap a credential in the credential list
- Copy a credential to the clipboard
- Reveal a password
- Tap the URI associated with a credential (to open it in an app or browser)
- Since they can be performed automatically, we will not count a user as retained if they only perform the following actions (in absence of any in the list above):
- Unlock their credentials
- Sync their credentials from the Firefox desktop browser
- We will count a user as retained in a given time interval if they perform one of the following actions:
- Does requiring a Firefox Account constitute a roadblock to adoption?
- What proportion of new Lockbox users are pre-existing Firefox Account users?
- What proportion of users start the Account sign-in process but never complete it?
- Does adoption of Lockbox lead to adoption of Firefox Mobile browsers (e.g. Focus)?
- Do users set the default browser in Lockbox to be a Firefox-related browser?
In addition to answering the above questions that directly concern actions in the app, we will also be analyzing telemetry emitted from the password manager that exists in the the Firefox desktop browser. These analyses will primarily examine whether users of Lockbox start active curation of their credentials in the desktop browser (Lockbox users will not be able to edit credentials directly from the app).
Collection
Data will be collected using this library:
https://github.com/mozilla-mobile/telemetry-ios/
We plan to submit two ping types.
First is the "core ping", which contains information about the iOS version, architecture, etc of the device lockbox has been installed on:
https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/data/core-ping.html
The second is the "focus event ping" which allows us to record event telemetry:
https://github.com/mozilla-mobile/focus-ios/wiki/Event-Tracking-with-Mozilla%27s-Telemetry-Service
The ping types are defined in lockbox-ios/Common/AppDelegate.swift
. Scheduling of ping transmission is done in the same file.
Every event must contain category
, method
and object
fields, and may optionally contain value
and extra
fields as well. Possible values for the former three fields are defined in lockbox-ios/TelemetryIntegration.swift
Events related to specific items should have an item id in the extra field where possible.
Here's an example of (something like) the swift code needed to record the event that fires when an item in the entry list is tapped:
Telemetry.default.recordEvent(
category: TelemetryEventCategory.action,
method: TelemetryEventMethod.tap,
object: TelemetryEventObject.entryList,
value: nil,
extras: ["itemid" : itemid]
)
Finally, the appName
metadata sent with each ping should always be 'Lockbox'.
See here for more information on event schemas:
https://firefox-source-docs.mozilla.org/toolkit/components/telemetry/telemetry/collection/events.html#public-js-api
List of Implemented Events
-
When the app starts up:
category
: actionmethod
: startupobject
: appvalue
: nilextras
: nil
-
Events that fire during the signin process:
category
: actionmethod
: showobject
: login_welcome, login_fxa, login_learn_morevalue
: nilextras
: nil
-
When the main item list is shown to the user:
category
: actionmethod
: showobject
: entryListvalue
: nilextras
: nil
-
When a user shows the details of an item in the entry list:
category
: actionmethod
: showobject
: entryDetailvalue
: nilextras
: ["itemid" : itemid]
-
When a user taps one of the copy buttons available after being shown entry details:
category
: actionmethod
: tapobject
: entryCopyUsernameButton, entryCopyPasswordButtonvalue
: nilextras
: ["itemid" : itemid]
-
When a user shows details from an item, is the password shown?:
category
: actionmethod
: tapobject
: reveal_passwordvalue
: true or false, whether the pw is displayedextras
: nil
-
When one of the settings pages is shown to the user:
category
: actionmethod
: showobject
: settings_list, settings_autolock, settings_preferred_browser, settings_account, settings_faq, settings_provide_feedbackvalue
: whatever the value of each of the above was changed to, or nil for settings_resetextras
: nil
-
When a user changes something on the settings page:
category
: actionmethod
: settingsChangedobject
: settings_biometric_login, settings_autolock_time, settings_reset, settings_visual_lock, settings_preferred_browser, settings_record_usage_datavalue
: whatever the value of each of the above was changed to, or nil for settings_resetextras
: nil
-
When the app enters the background or foreground:
category
: actionmethod
: background, foregroundobject
: appvalue
: nilextras
: nil
References
Library used to collect and send telemetry on iOS
Description of the "Core" ping