PHP logging

EventLogging::logEvent( 'MobileWikiAppWidgets', 11312870, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppWidgets": 11312870
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppWidgets

From Meta, a Wikimedia project coordination wiki
Revision 11312870
Jump to navigation Jump to search
description"Track user actions when using widgets to launch the Wikipedia app. Note that this schema is unsampled, unlike the MobileWikiAppSearch schema, so the data will have to be corrected in order to compare the two data sets."
properties
action
description"Which particular action triggered this event -searchwidget - the user tapped on the search widget and it launched the app -featuredarticlewidget - the user tapped on the featured article widget and it launched the app"
enum
"searchwidgettap"
"featuredarticlewidgettap"
type"string"
requiredtrue
appInstallID
description"AppInstallID that's unique to each app install and is used to track user across this and other features in the mobile app"
type"string"
requiredtrue