PHP logging

EventLogging::logEvent( 'MobileAppTrackingChange', 5412592, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileAppTrackingChange": 5412592
			}
		}
	}
}

JavaScript logging

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

Schema:MobileAppTrackingChange

From Meta, a Wikimedia project coordination wiki
Revision 5412592
Jump to navigation Jump to search
description"Logs instances of people enabling or disabling EL tracking"
properties
username
type"string"
requiredtrue
description"Commons Username"
state
type"boolean"
requiredtrue
description"Whether tracking was turned on or off"
device
type"string"
requiredtrue
description"The device model the user is uploading from. Examples: 'Galaxy Nexus', 'iPad3,1'"
platform
type"string"
requiredtrue
description"Platform / version the user is uploading from. Example: 'Android/4.2'"
appversion
type"string"
requiredtrue
description"Version of the app that the user is using. Example: 'Android/1.0', 'iOS/0.5beta1'"