PHP logging
EventLogging::logEvent( 'SpecialInvestigate', 20877007, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"SpecialInvestigate": 20877007
}
}
}
}
JavaScript logging
mw.track( 'event.SpecialInvestigate', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs actions taken on Special:Investigate." |
---|
properties | action | description | "The action being performed by the user." |
---|
type | "string" |
---|
enum | "submit" |
"query" |
"end" |
"block" |
"pin" |
"tool" |
|
---|
required | true |
---|
|
---|
targetsCount | description | "Number of targets in the request (if zero, that means a filter form was submitted). Present if action is 'submit' or 'block'." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
excludeTargetsCount | description | "Number of excluded targets in the request. Present if action is 'submit'." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
relevantTargetsCount | description | "Number of targets that an action is performed on. Present if action is 'end', 'block' or 'query'." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
tab | description | "The current tab. Present if action is 'query'." |
---|
type | "string" |
---|
enum | "preliminary-check" |
"compare" |
"timeline" |
|
---|
required | false |
---|
|
---|
queryTime | description | "Approximate time taken to fetch results, in milliseconds. Present if action is 'query'." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
resultsCount | description | "Number of result rows. Present if action is 'query'." |
---|
type | "integer" |
---|
required | false |
---|
|
---|
resultsIncomplete | description | "Whether the results were incomplete. Present if action is 'query'." |
---|
type | "boolean" |
---|
required | false |
---|
|
---|
tool | description | "Tool link URL that the user clicked on. Present if action is 'tool'." |
---|
type | "string" |
---|
required | false |
---|
|
---|
|
---|