PHP logging
EventLogging::logEvent( 'PersonalBar', 7829128, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"PersonalBar": 7829128
}
}
}
}
JavaScript logging
mw.track( 'event.PersonalBar', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Logs user interaction with the personal bar." |
---|
properties | action | type | "string" |
---|
required | true |
---|
enum | |
---|
description | "Type of user interaction logged (only one possible action for now)" |
---|
|
---|
link | type | "string" |
---|
required | true |
---|
enum | "user-page" |
"talk" |
"preferences" |
"beta" |
"language" |
"watchlist" |
"contributions" |
"notifications" |
"privacy" |
"help" |
"logout" |
|
---|
description | "Identifies the link clicked by the user" |
---|
|
---|
version | type | "string" |
---|
required | true |
---|
enum | "default" |
"compact-flyout" |
"compact-bar" |
|
---|
description | "Version of the personal bar displayed to the user" |
---|
|
---|
userId | type | "integer" |
---|
required | true |
---|
description | "user ID, logged to count unique events by user" |
---|
|
---|
|
---|