PHP logging

EventLogging::logEvent( 'MobileWikiAppDailyStats', 18115101, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppDailyStats": 18115101
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppDailyStats

From Meta, a Wikimedia project coordination wiki
Revision 18115101
Jump to navigation Jump to search
description"Track user activity once a day."
properties
appInstallAgeDays
description"The number of days since the app was first installed."
type"integer"
requiredtrue
is_anon
requiredfalse
description"Whether a user is logged in."
type"boolean"
languages
description"JSON array of languages, in order. For example: if user's language settings are 1. German and 2. English, then this is ["de","en"]"
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