PHP logging
EventLogging::logEvent( 'GuidedTourExternalLinkActivation', 8690560, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"GuidedTourExternalLinkActivation": 8690560
}
}
}
}
JavaScript logging
mw.track( 'event.GuidedTourExternalLinkActivation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
description | "Recorded when a user activates an external link within a guider -- both via anchors that appear in the body of the guider and via buttons that link to external pages." |
---|
properties | userId | type | "integer" |
---|
description | "User ID of the user interacting with the tour (zero for anons)" |
---|
required | true |
---|
|
---|
sessionToken | type | "string" |
---|
description | "A randomly generated token that will identify a user's browser throughout a session of MediaWiki activities. Note that tokens do not persist between sessions. This field is NULL if the token cannot be generated or persisted between page loads (e.g. cookies are turned off).
Tokens are generated with mw.user.sessionId()." |
---|
required | false |
---|
|
---|
tour | type | "string" |
---|
description | "The name of the tour. Used as a tour identifier." |
---|
required | true |
---|
|
---|
step | type | "string" |
---|
description | "The name of the current step that the guider represents" |
---|
required | true |
---|
|
---|
label | type | "string" |
---|
description | "The displayed text of the link" |
---|
required | true |
---|
|
---|
href | type | "string" |
---|
description | "The hyperlink reference of the link." |
---|
required | true |
---|
|
---|
|
---|