PHP logging

EventLogging::logEvent( 'MobileWikiAppNotificationInteraction', 21794376, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppNotificationInteraction": 21794376
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppNotificationInteraction', { /* ... */ } );

Schema:MobileWikiAppNotificationInteraction

From Meta, a Wikimedia project coordination wiki
Revision 21794376
Jump to navigation Jump to search
description"Track user interactions with Echo notifications."
properties
notification_id
description"Unique identifier of the Echo event triggering the notification."
type"integer"
requiredtrue
notification_wiki
description"The wiki from which the notification came from (e.g. 'enwiki', 'commonswiki')."
type"string"
requiredtrue
notification_type
description"Type of notification interacted with, for example: 'welcome', 'edit-thank', and 'thank-you-edit' (milestone)."
type"string"
requiredtrue
action_rank
description"Rank of the action performed (forward-compatible in case API changes to include more): 0: Mark as read and archive 1: Primary action (as specified by Echo API) 2: Seconary action (as specified by Echo API)"
type"integer"
requiredfalse
action_icon
description"The icon associated with the link, which can be used to determine action. For example, if type:edit-thank and link_rank:2, then this field can tell us whether the user clicked on the name of the thanker (link_icon:userAvatar) or the article that they were thanked for editing (link_icon:article)."
type"string"
requiredfalse
selection_token
description"In cases where user has selected multiple notifications and has marked all as read (and archived), a unique identifier is generated for the set and included with the event sent for each of the notifications. This enables us to analyze usage of the multi-select feature."
type"string"
requiredfalse
incoming_only
description"Is first instance of notification, TRUE or FALSE."
type"boolean"
requiredfalse
device_level_enabled
description"User has device level notifications enabled."
type"boolean"
requiredfalse
app_install_id
description"Randomly generated UUID that is unique to each app install, which can be used to cross-reference the same app install across different schemas."
type"string"
requiredtrue
client_dt
description"Client-side ISO-8601-formatted date-time at which this event occurred."
type"string"
requiredtrue