PHP logging
EventLogging::logEvent( 'ServerSideAccountCreation', 20953705, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"ServerSideAccountCreation": 20953705
}
}
}
}
JavaScript logging
mw.track( 'event.ServerSideAccountCreation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs server-side events generated by MediaWiki when a new account is created" |
---|
properties | token | type | "string" |
---|
required | true |
---|
description | "User token" |
---|
|
---|
userId | type | "integer" |
---|
required | true |
---|
description | "User ID'" |
---|
|
---|
userName | type | "string" |
---|
required | true |
---|
description | "Username of newly-created user" |
---|
|
---|
isSelfMade | type | "boolean" |
---|
required | true |
---|
description | "False if existing user created this account for someone else, true otherwise" |
---|
|
---|
returnTo | type | "string" |
---|
description | "Indicates the wiki page the user was on when initiating Create account." |
---|
|
---|
returnToQuery | type | "string" |
---|
description | "The query string, if any, for the wiki page the user was on when initiating Create account." |
---|
|
---|
campaign | type | "string" |
---|
required | true |
---|
description | "Contents of 'mediaWiki.campaign' cookie." |
---|
|
---|
userBuckets | type | "string" |
---|
required | true |
---|
description | "Contents of 'userbuckets' cookie." |
---|
format | "json-encoded" |
---|
|
---|
displayMobile | type | "boolean" |
---|
required | true |
---|
description | "Whether the mobile view is active." |
---|
|
---|
isStable | type | "string" |
---|
enum | |
---|
description | "Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site. (Not implemented as of 2013-02-12.)" |
---|
|
---|
isApi | type | "boolean" |
---|
required | true |
---|
description | "Whether the account creation is using API." |
---|
|
---|
|
---|