PHP logging

EventLogging::logEvent( 'MobileWebUploads', 8209043, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebUploads": 8209043
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebUploads

From Meta, a Wikimedia project coordination wiki
Revision 8209043
Jump to navigation Jump to search
description"Logs events related to the upload features on the Wikimedia mobile web"
properties
token
type"string"
requiredtrue
description"User token"
action
type"string"
requiredtrue
enum
"preview"
"previewCancel"
"previewSubmit"
"cancel"
"success"
"error"
"whatDoesThisMean"
"copyvioOk"
"copyvioCancel"
description"The actions involved in uploading a file on the mobile web. preview - view of the initial upload screen with preview. previewCancel - click on the cancel button after file has been selected and is previewed. previewSubmit - click on the upload button after the file has been selected and previewed. cancel - click on the cancel link aborting the upload. error - file does not upload and error message is displayed. success - user successfully uploads file. copyvioOk - user clicks OK on the copyvio warning. copyvioCancel - user clicks Cancel on the copyvio warning."
funnel
type"string"
requiredtrue
enum
"uploads"
"article"
"watchlist"
"nearby"
description"Identifier for the upload funnel. uploads - user enters initial upload screen from the Uploads special page. article - user enters upload screen from an article."
pageId
type"integer"
description"ID of the referrer article in the articleCTA funnel, if available. (Will always be 0 for myUploads funnel)."
username
type"string"
description"Username for logged in user."
isEditable
type"boolean"
description"True if the referrer article the user is adding an image to is editable based on user privileges"
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)."