PHP logging

EventLogging::logEvent( 'MobileWikiAppUserContribution', 20217330, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppUserContribution": 20217330
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppUserContribution

From Meta, a Wikimedia project coordination wiki
Revision 20217330
Jump to navigation Jump to search
description"Track user actions when using the Enhanced User Contribution Screen."
properties
action
description"Enhanced User Contribution Screen actions."
enum
"open_hist"
"filt_caption"
"filt_desc"
"filt_tag"
"filt_all"
"caption_view"
"desc_view"
"tag_view"
"misc_view"
"caption_view2"
"desc_view2"
"tag_view2"
"misc_view2"
"disabled"
"paused"
"ip_block"
type"string"
requiredtrue
session_token
description"A randomly generated identifier for cross-schema session analytics."
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