title: analytics/mediawiki/accountcreation/account_conversion description: Schema for events related to account creation tasks $id: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 $schema: https://json-schema.org/draft-07/schema# type: object additionalProperties: false allOf: - $ref: /fragment/analytics/common/2.0.0 properties: performer: description: > Represents the MediaWiki actor that made this change. If this change is an edit, this will be the same as revision.editor. $ref: /fragment/mediawiki/state/entity/user/1.0.0 event_type: type: string description: Type of event being recorded. It can have several possible values > impression (when the user sees the form), > 2fa-challenge (when the user is asked for a 2FA code or key; login only), > 2fa-switch (when the user chooses to switch to a different 2FA type; login only), > emailauth-challenge (when the user is asked for a code sent to their email; login only), > success (when the user logs in or signs up successfully), > or failure (when the user fails to log in or sign up due to an error or invalid input). enum: - impression - 2fa-challenge - 2fa-switch - emailauth-challenge - success - failure error_message_key: type: string maxLength: 100 description: The key of the error message in the i18n system. This key corresponds to a specific message and is used for failure events. page_namespace: type: integer description: The namespace ID this page belongs to. page_title: type: string description: Title of the page where the event occurred. source_wiki: type: string description: The ID of the wiki where the event occurred. sul3_enabled: description: Whether Single User Login v3 is enabled for this request or not. type: boolean mfa_type: type: string description: For a 2fa-challenge event, this is the 2FA type the user was challenged with. For a 2fa-switch event, this is the 2FA type the user switched to. For a success or failure event, this is the 2FA type the user logged in with or tried to log in with. It may be missing if 2FA was not offered. mfa_types_offered: type: array items: type: string description: List of 2FA types that are available to the user. If the user doesn't have 2FA enabled, this list is empty. This field is always present for 2fa-challenge and 2fa-switch events. For success and failure events, this field is present if the user was offered 2FA. mfa_type_switched_from: type: string description: For a 2fa-switch event, this is the 2FA type the user switched from. This field is not present for other types of events. required: - $schema - meta - event_type - performer examples: - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: impression meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: success meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true mfa_type: totp mfa_types_offered: - totp - recoverycodes - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: impression meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.account_conversion uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:CreateAccount' performer: is_temp: true user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' error_message_key: userexists event_type: failure meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.account_conversion uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:CreateAccount' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' error_message_key: wrongpassword event_type: failure meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: 2fa-challenge meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true mfa_type: webauthn mfa_types_offered: - webauthn - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: 2fa-switch meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true mfa_type: recoverycodes mfa_types_offered: - totp - recoverycodes mfa_type_switched_from: totp - $schema: /analytics/mediawiki/accountcreation/account_conversion/1.2.0 dt: '2023-07-26T08:58:41Z' event_type: emailauth-challenge meta: domain: example.org dt: '2023-07-26T08:58:41Z' id: 12345678-1234-5678-1234-567812345678 request_id: 12345678-1234-5678 stream: mediawiki.accountcreation.login uri: 'http://example.org/some-event' page_namespace: -1 page_title: 'Special:UserLogin' performer: is_temp: false user_id: 12345678 user_text: UserOne source_wiki: "enwiki" sul3_enabled: true