PHP logging

EventLogging::logEvent( 'FlowReplies', 10561344, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"FlowReplies": 10561344
			}
		}
	}
}

JavaScript logging

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

Schema:FlowReplies

From Meta, a Wikimedia project coordination wiki
Revision 10561344
Jump to navigation Jump to search
description"Measuring use and success of Flow's four topic and post creation options"
properties
action
enum
"initiate"
"cancel-attempt"
"cancel-abort"
"cancel-success"
"preview"
"keep-editing"
"save-attempt"
"save-success"
description"The actions that the user can take, starting with the entry point. - initiate: the user clicks into an entry field or on the Reply link. - cancel-attempt: the user clicks on the 'Cancel' link. - cancel-abort: the user clicks 'Cancel' in the browser modal to abort the Cancel action. - cancel-success: the user clicks 'OK' in the browser modal to complete the Cancel action. - preview: the user clicks on the 'Preview' link. - keep-editing: the user clicks on the 'Keep editing' link while in preview mode. - save-attempt: the user clicks 'Add topic' or 'Reply' button to publish their post. - save-success: the new topic or reply posts successfully."
type"string"
requiredtrue
entrypoint
enum
"new-topic"
"reply-top"
"reply-post"
"reply-bottom"
description"The entry points for contributing to a Flow board. - new-topic: the user clicks in the 'start a new topic' field at the top of the board. - reply-top: the user clicks on the 'Reply' link in the topic titlebar. - reply-post: the user clicks on a 'Reply' link under a specific message. - reply-bottom: the user clicks in the entry field at the bottom of a thread."
type"string"
requiredtrue
isAnon
type"boolean"
description"True if the user was anonymous; false if logged in."
requiredtrue
sessionId
type"string"
description"Identify user (more correctly a browser session), from mw.user.sessionId()."
funnelId
type"string"
description"A unique identifier generated at each initiation action, i.e associated with the entry form for the interaction."
pageNs
type"number"
description"namespace ID (wgNamespaceNumber) of the page the user is on, e.g. 1 for Talk:, 2600 for Topic:"
requiredtrue
pageTitle
type"string"
description"The title of the Flow board, in unprefixed DB form (e.g. 'Flow_QA')"
requiredtrue