Schema:MobileWikiAppMediaGallery

PHP logging

EventLogging::logEvent( 'MobileWikiAppMediaGallery', 18115560, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppMediaGallery": 18115560
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppMediaGallery', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18115560
description"Track when the user views or interacts with the Media Gallery feature of the mobile app."
properties
action
description"Which user action triggered this event: - open: gallery is first opened - close: gallery is closed - swipeLeft: user swiped to the left of the previous item - swipeRight: user swiped to the right of the previous item - share: user clicked the 'share' button (does not necessarily mean that sharing was completed successfully) - save: user saved the item to the local device"
type"string"
enum
"open"
"close"
"swipeLeft"
"swipeRight"
"share"
"save"
requiredtrue
source
description"The source from which the gallery was launched: 0 = Lead image, 1 = non-lead image, 2 = link preview thumbnail, 3 = featured image in the feed."
type"integer"
requiredtrue
time_spent
description"Amount of time, in seconds, that the user spent within the Gallery. This value is only present for the 'close' action."
type"integer"
requiredfalse
pageTitle
description"Title of the page with which the media gallery is associated"
type"string"
requiredtrue
imageTitle
description"Title of the media item that is currently displayed."
type"string"
requiredtrue
session_token
description"Session token for this gallery funnel."
type"string"
requiredtrue
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