Jump to content

Schema:MobileWikiAppArticleSuggestions

PHP logging

EventLogging::logEvent( 'MobileWikiAppArticleSuggestions', 18115091, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppArticleSuggestions": 18115091
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppArticleSuggestions', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18115091
description"Track when the user views or interacts with the 'read more' suggestions at the bottom of the current article."
properties
action
requiredtrue
description"Which user action triggered this event: 'shown' is used when the suggestions are first shown to the user, and 'clicked' is used when the user clicks one of the suggestions."
type"string"
enum
"shown"
"clicked"
pageTitle
description"Title of the page currently being viewed"
type"string"
requiredtrue
readMoreList
description"List of page suggestions displayed to the user (separated by a pipe symbol)"
type"string"
requiredtrue
readMoreIndex
description"Index of the suggested page that was clicked (only used with action=clicked)"
type"integer"
requiredfalse
readMoreSource
description"The source of the Read More suggestion list. Allowed values are: 0: Old full-text search method of generating suggestions. 1: New CirrusSearch 'morelike' method of generating suggestions. 2: New CirrusSearch 'opening_text' method of generating suggestions. 3: Citolytics method of generating suggestions (See https://phabricator.wikimedia.org/T142477)."
type"integer"
requiredtrue
latency
description"The latency in milliseconds of the network request that fetches the list of suggested pages (only used with action=shown)"
type"integer"
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