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
description | "Basic analytics for Flow user-to-user communication" |
---|
properties | action | type | "string" |
---|
enum | |
---|
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." |
---|
required | true |
---|
|
---|
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:" |
---|
required | true |
---|
|
---|
mobileMode | type | "string" |
---|
enum | |
---|
description | "If in mobile view, specifies the mobile mode. Absent otherwise." |
---|
|
---|
userAgent | type | "string" |
---|
description | "Browser's user-agent string" |
---|
required | true |
---|
|
---|
|
---|