PHP logging

EventLogging::logEvent( 'MobileWebEditing', 14035662, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebEditing": 14035662
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebEditing

From Meta, a Wikimedia project coordination wiki
Revision 14035662
Jump to navigation Jump to search
description"(Unused) Logs editing attempts on Wikimedia mobile sites"
properties
token
type"string"
requiredtrue
description"User token"
editor
type"string"
requiredtrue
description"The editor being used. e.g VisualEditor, SourceEditor"
action
type"string"
requiredtrue
enum
"attempt"
"cancel"
"submit"
"success"
"error"
"save"
"switch"
description"The actions involved in the wikitext editing process. No VisualEditor edits are logged currently in this schema. 'attempt' occurs when the wikitext editor overlay has fully rendered. 'cancel' occurs when the cancel button on the editor is clicked and the editor closes returning the user to the article 'submit' occurs when the constructive (green) button on the preview section of the overlay is clicked. The button must be enabled for this event to fire. This begins the saving process. 'success' occurs when the edit is successfully saved to the server 'error' occurs when the wikitext edit to the server fails 'save' occurs when the progressive (blue) continue button is clicked and the user is taken to the preview screen. 'switch' occurs when the editor switches from one editor to another editor e.g. from VisualEditor to SourceEditor."
funnel
type"string"
requiredtrue
enum
"article"
"ctaSignup"
"leftNavSignup"
description"Identifier for the editing funnel. article - logged in user enters editor from an article, ctaSignup - newly registered user coming from the CTA enters editor."
section
type"integer"
requiredtrue
description"The number of the section that the user is editing, e.g. 0, 1, 2, etc."
revId
type"integer"
description"Current revision of the article the user is attempting to edit, if available. Is updated to the latest revision for action=success events"
pageId
type"integer"
description"ID of the page user is editing."
namespace
type"integer"
description"Namespace id of the page the user is editing."
userEditCount
type"integer"
description"Number of edits before the edit occurred. For example on a successful first edit the edit count will be 0"
isTestA
type"boolean"
description"Whether Test A was run in the AB Test"
username
type"string"
description"Username for logged in user."
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."
errorText
type"string"
description"Error message received by user (if applicable)."