Firebase Analytics

App usage data is collected through Firebase Analytics.

Events

These events describe the app usage. This includes default and custom events.

NOTE: Please make sure to Add parameters to events that you want insights on in the Firebase console. Also remember there is a limit on the number of text and number parameters.


NameTypeDescriptionParameters
app_clear_datadefaultWhen the user resets/clears the app data
app_removedefaultWhen an application is removed or uninstalled from the device.
app_updatedefaultWhen the app is updated to a new version and launched again.
clickcustom

When the user clicks on a button in the app.

  • button (show_task_calendar, open_settings, open_clinical_tasks, start_questionnaire, show_credits)
config_updatecustomWhen the app config is updated. This can be a protocol change, app version change, or a force update.
  • config_version
  • schedule_version
  • app_version
first_opendefaultThe first time a user launches the app after installing or re-installing.
notification_dismissdefaultWhen a user dismisses a notification sent by FCM.
notification_foregrounddefaultWhen a notification sent by FCM is received while the app is in the foreground.
notification_opendefaultWhen the user opens a notification sent by FCM.
notification_receivedefaultWhen a notification sent by FCM is received while the app is in the background.
notification_rescheduledcustomWhen a new set of notifications are scheduled. 
os_updatedefaultWhen the device operating system is updated.
qr_code_scannedcustomWhen the app scans a QR code during enrolment.
  • text 
questionnaire_finishedcustomWhen a user finishes a questionnaire.
  • questionnaire_timestamp
  • type (phq8, rses, etc)
questionnaire_startedcustomWhen a user starts a questionnaire.
  • questionnaire_timestamp
  • type (phq8, rses, etc)
resumedcustomWhen the app is placed on foreground from the background.
screen_viewdefaultWhen a screen (or 'page') transition occurs.
send_errorcustomWhen data fails to send to Kafka.
  • error
    • Error description
  • name
    • Data type (completion_log, timezone, phq8, etc)
  • questionnaire_timestamp
send_successcustomWhen data successfully sends to Kafka.
  • topic
    • Kafka topic name
  • name
    • Data type (completion_log, timezone, phq8, etc)
  • questionnaire_timestamp
session_startdefaultWhen the user engages the app after a period of inactivity (exceeding the session timeout).

(Default event descriptions from https://support.google.com/firebase/answer/6317485)


User Properties

These are the attributes used to define the users of the app. This includes default and custom user properties.

NOTE: Please make sure to Register User Property in the Firebase console first (for custom properties).

NameTypeDescription
AgedefaultThe age of the user by category (18-24, 25-34, 35-44, 45-54, 55-64, and 65+).
App versiondefaultThe versionName or bundle Version.
CountrydefaultThe country where the user resides.
Device modeldefaultThe device model name (moto g(6), SM-G950F, etc)
enrolmentDatecustomThe enrolment date of the user.
First open timedefaultThe time in milliseconds when the user first opened the app.
GenderdefaultThe gender of the user (Male or Female).
humanReadableIdcustomThe human readable identifier of the user.
InterestsdefaultThe interests of the user by category (Arts & Entertainment, etC).
LanguagedefaultThe language setting of the device.
New/establisheddefaultA new user first opened the app within the last 7 days. An established user first opened the app more than 7 days ago.
OS versiondefaultThe version of the device operating system.
projectIdcustomThe identifier for the project in which the user is enrolled in.
sourceIdcustomThe identifier for the source (device) the user is using.
subjectIdcustomThe identifier for the subject/participant (user).

(Default property descriptions from https://support.google.com/firebase/answer/6317486)