Jump to content

Schema:Flow

PHP logging

EventLogging::logEvent( 'Flow', 6521416, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"Flow": 6521416
			}
		}
	}
}

JavaScript logging

mw.track( 'event.Flow', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 6521416
description"Basic analytics for Flow user-to-user communication"
properties
action
type"string"
enum
"view"
description"What user did. Mainly view, but we could also log all kinds of actions."
isAnon
type"boolean"
description"True if the user was anonymous; false if logged in."
requiredtrue
sessionId
type"string"
description"Identify user, from mw.user.sessionId()."
pageNs
type"number"
description"namespace ID (wgNamespaceNumber) of the page the user is on, e.g. 1 for Talk:"
requiredtrue
mobileMode
type"string"
enum
"alpha"
"beta"
"stable"
description"If in mobile view, specifies the mobile mode. Absent otherwise."
userAgent
type"string"
description"Browser's user-agent string"
requiredtrue