PHP logging
EventLogging::logEvent( 'ArticleCreationHelp', 5800247, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"ArticleCreationHelp": 5800247
}
}
}
}
JavaScript logging
mw.track( 'event.ArticleCreationHelp', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Event logging schema for the ArticleCreationHelp extension." |
---|
properties | isAnon | type | "boolean" |
---|
required | true |
---|
description | "True if the user has not logged in" |
---|
|
---|
token | type | "string" |
---|
required | true |
---|
description | "Unique random token per browser stored in the mediaWiki.user.sessionId cookie" |
---|
|
---|
userId | type | "integer" |
---|
description | "User ID" |
---|
|
---|
action | type | "string" |
---|
required | true |
---|
enum | "red-link-hover" |
"red-link-click" |
"learn-more-click" |
|
---|
description | "Interactions with red links and actions offered by guiders on red links" |
---|
|
---|
redLinkTitle | type | "string" |
---|
required | true |
---|
description | "Title of the red link the user is interacting with" |
---|
|
---|
pageTitle | type | "string" |
---|
description | "Title of the current page" |
---|
|
---|
pageId | type | "integer" |
---|
description | "ID of the current page" |
---|
|
---|
pageNs | type | "integer" |
---|
description | "Namespace ID of the current page" |
---|
|
---|
|
---|