PHP logging

EventLogging::logEvent( 'UploadWizardFlowEvent', 11772723, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"UploadWizardFlowEvent": 11772723
			}
		}
	}
}

JavaScript logging

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

Schema:UploadWizardFlowEvent

From Meta, a Wikimedia project coordination wiki
Revision 11772723
Jump to navigation Jump to search
description"Log of a user doing something in UploadWizard, for funnel analysis. There will be more specialized schemas for events which need parameters."
properties
flowId
type"string"
requiredtrue
description"Identifies a flow of events (all events which happened in the same upload session, an upload session being someone clicking aroung in UploadWizard but not reloading the page). It is comprised of a timestamp and a random number."
flowPosition
type"integer"
requiredtrue
description"Position within an event flow (first event is 1 etc)."
event
type"string"
requiredtrue
enum
"upload-button-clicked"
"flickr-upload-button-clicked"
"leave-page"
"retry-uploads-button-clicked"
description"Event name. * upload-button-clicked: user clicked on the normal (from local file) upload button * flickr-upload-button-clicked: user clicked on the remote (Flickr) upload button * leave-page: user left the page (closed the browser tab, navigated to a different page etc). The logging of this event might be unreliable. * retry-uploads-button-clicked: user clicked the button to retry failed uploads"