PHP logging

EventLogging::logEvent( 'MobileWebWikiGrokError', 11517270, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebWikiGrokError": 11517270
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebWikiGrokError

From Meta, a Wikimedia project coordination wiki
Revision 11517270
Jump to navigation Jump to search
description"Logs errors related to loading and showing WikiGrok."
properties
error
type"string"
requiredtrue
enum
"no-impression-not-enough-suggestions"
"no-impression-cannot-load-interface"
"no-response-cannot-record-user-input"
description"The errors related to showing WikiGrok. - no-impression-cannot-fetch-claims: claims cannot be fetched from the server - no-impression-cannot-fetch-labels: labels cannot be fetched from the server - no-impression-cannot-fetch-suggestions: suggestions cannot be fetched from the server - no-impression-not-enough-suggestions: the number of suggestions is not enough to display WikiGrok - no-impression-cannot-load-interface: interface module fails to load - no-response-cannot-record-user-input: user response cannot be recorded in the server"
userToken
type"string"
requiredtrue
description"A token that represents a unique user persisting across sessions."
taskToken
type"string"
requiredtrue
description"A token that represents the current tasks and persists across the WikiGrok funnel, until completion. The token is the key used in the MobileWebWikiGrokResponse to store the user response. The token is renewed when the page is refreshed or the user visits a new page."
taskType
type"string"
requiredtrue
description"A string identifying the version/design of the WikiGrok widget, e.g. 'mobile b'"
pageId
type"integer"
requiredtrue
description"ID of the page the user is viewing WikiGrok on."
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is using the stable, beta, or alpha version of the mobile site."
testing
type"boolean"
requiredfalse
description"Whether the event was generated as part of a test."
isLoggedIn
type"boolean"
requiredtrue
description"Whether the user is logged in."