Jump to content

Schema:MobileWikiAppPageScroll

PHP logging

EventLogging::logEvent( 'MobileWikiAppPageScroll', 18118723, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppPageScroll": 18118723
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWikiAppPageScroll', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18118723
description"Measure how much of the page the user scrolls through."
properties
pageID
description"The ID of the article to which this event applies."
type"integer"
requiredtrue
pageHeight
description"The total height of the page, in device-independent pixels."
type"integer"
requiredtrue
scrollFluxDown
description"The total amount that the user scrolled down manually (i.e. not using the ToC to jump to a section)."
type"integer"
requiredtrue
scrollFluxUp
description"The total amount that the user scrolled up manually (i.e. not using the ToC to jump to a section)."
type"integer"
requiredtrue
maxPercentViewed
description"The total percent of the page height that was reached."
type"integer"
requiredtrue
time_spent
description"Amount of time, in seconds, that the user spent reading this page, before leaving the page for any reason (going to another page, another part of the app, leaving the app, etc.)"
type"integer"
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