PHP logging
EventLogging::logEvent( 'NewEditorEdit', 8850417, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"NewEditorEdit": 8850417
}
}
}
}
JavaScript logging
mw.track( 'event.NewEditorEdit', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs edit events on NS_MAIN for newer editors (less than 30 days onboard)" |
---|
properties | userId | type | "integer" |
---|
required | true |
---|
description | "The user's user ID." |
---|
|
---|
userAge | type | "integer" |
---|
required | true |
---|
description | "Number of seconds that have elapsed since the user registered." |
---|
|
---|
editCount | type | "integer" |
---|
required | true |
---|
description | "The editor's total edit count across all namespaces." |
---|
|
---|
pageId | type | "integer" |
---|
required | true |
---|
description | "ID of the page the user is attempting to edit." |
---|
|
---|
revId | type | "integer" |
---|
required | true |
---|
description | "Revision ID of the edit." |
---|
|
---|
isAPI | type | "boolean" |
---|
description | "True if edit was made via the API; false otherwise." |
---|
|
---|
isMobile | type | "boolean" |
---|
description | "True if the edit was made via the mobile site; false otherwise." |
---|
|
---|
|
---|