Schema:EchoInteraction

PHP logging

EventLogging::logEvent( 'EchoInteraction', 21773499, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"EchoInteraction": 21773499
			}
		}
	}
}

JavaScript logging

mw.track( 'event.EchoInteraction', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 21773499
description"Logs activity related to how users interact with notifications produced via the Echo extension"
properties
version
type"string"
requiredtrue
description"References the full specifications of the current version of Echo (adding new notification types or changing the schema requires a version change), example: 1.1"
context
type"string"
enum
"flyout"
"archive"
"mobile-overlay"
"mobile-archive"
description"Context in which the action occurred, applies to all actions except for badge-link-click"
action
type"string"
requiredtrue
enum
"notification-impression"
"notification-link-click"
"notification-bundle-expand"
"mark-all-read-click"
"mark-entire-xwiki-bundle-read-click"
"special-page-visit"
"ui-archive-link-click"
"ui-badge-link-click"
"ui-help-click"
"ui-prefs-click"
description"List of possible client-side actions. ui-* actions refer to UI elements, notification-* actions refer to individual notifications. ui-badge-link-click is fired when the user clicks on the badge and has no context; ui-archive-link-click can only have flyout as a context; ui-help-click and ui-prefs-click actions can occur in the flyout and archive context. mark-all-read-click is fired when the user clicks the mark all read button, either in the popup or the special page. mark-entire-xwiki-bundle-read-click is fired when an entire cross-wiki bundle is marked as read."
eventId
type"integer"
description"Unique identifier of the event triggering the current notification (matching the same field in Schema:Echo), only available for notification-* actions."
notificationType
type"string"
description"Type of notification, matching definitions from Schema:Echo. This is only available for notification-* actions."
userId
type"integer"
description"User ID, change to required if the feature is being tested on registered only"
requiredtrue
editCount
type"integer"
description"Lifetime edit count, for registered users only"
mobile
type"boolean"
description"True if interaction happened in a mobile interface"
requiredfalse
notifWiki
type"string"
description"Wiki the notification is from, omitted if the notification is from the current wiki"
requiredfalse