PHP logging
EventLogging::logEvent( 'EditPageTracking', 5985409, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"EditPageTracking": 5985409
}
}
}
}
JavaScript logging
mw.track( 'event.EditPageTracking', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs a user's first attempt to edit a page in each namespace, per wiki." |
---|
properties | timestamp | |
---|
globalUserId | type | "integer" |
---|
description | "The user's global ID as defined in the globaluser table" |
---|
|
---|
localUserId | type | "integer" |
---|
description | "The user's local ID as defined in the local user table and in the wiki's user table" |
---|
|
---|
project | type | "string" |
---|
description | "The project ID, for example: enwiki" |
---|
|
---|
pageNamespace | type | "integer" |
---|
description | "The numberic ID for the namespace, for example: 0 for the main namespace" |
---|
|
---|
pageTitle | type | "string" |
---|
description | "The title of the page, if available (this is to allow logging edit attempts on pages that do not exist yet)" |
---|
|
---|
pageId | type | "integer" |
---|
description | "The page ID, if available" |
---|
|
---|
|
---|