PHP logging

EventLogging::logEvent( 'MobileWikiAppSuggestedEdits', 18949003, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppSuggestedEdits": 18949003
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppSuggestedEdits', { /* ... */ } );

Schema:MobileWikiAppSuggestedEdits

From Meta, a Wikimedia project coordination wiki
Revision 18949003
Jump to navigation Jump to search
description"Summary of Suggested Edits feature usage"
properties
time_spent
requiredtrue
description"The length of this sub-session, in seconds. Paused whenever user started reading an article and resumed whenever they returned to the editing task via the Back button."
type"integer"
edit_tasks
description"JSON array of named per-edit-task counts of: - impressions (total suggestions) - clicks (when user accepts a suggestion) - cancels (when user changes mind) - successes (when an edit is successfully published) - failures (e.g. connection time-out, other errors that prevented the edit from getting published)"
type"string"
requiredtrue
help_opened
description"Number of times the user tapped to view help."
type"integer"
requiredtrue
scorecard_opened
description"Number of times the user looked at their scorecard."
type"integer"
requiredtrue
source
description"How the user arrived at the Editor tasks screen. For example: - dialog (onboarding card) - notification - menu"
type"string"
requiredtrue
session_token
description"A randomly generated identifier for cross-schema session analytics."
type"string"
requiredtrue
app_install_id
description"Randomly generated UUID that is unique to each app install, which can be used to cross-reference the same app install across different schemas."
type"string"
requiredtrue
client_dt
description"Client-side ISO-8601-formatted date-time at which this event occurred."
type"string"
requiredtrue