PHP logging

EventLogging::logEvent( 'MobileWikiAppTalk', 21020341, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWikiAppTalk": 21020341
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWikiAppTalk

From Meta, a Wikimedia project coordination wiki
Revision 21020341
Jump to navigation Jump to search
description"Measure user actions when using the Talk Pages."
properties
action
description"Actions that can be performed while interacting with Talk pages. Can be at least one of: open_talk, open_topic, new_topic_click, reply_click, refresh, lang_change, submit"
type"string"
requiredtrue
source
description"Source from where the user came into the Talk workflow. Can be any value from the InvokeSource enumeration."
type"string"
requiredtrue
pageNS
description"Namespace of the page, e.g. Talk, User talk, etc."
type"string"
requiredfalse
anon
description"Whether the user is logged in or anonymous: false = logged in, true = anonymous."
type"boolean"
requiredtrue
time_spent
description"Amount of time, in seconds, that the user has been so far in the Talk workflow."
type"integer"
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