PHP logging

EventLogging::logEvent( 'TranslationRecommendationUserAction', 21139971, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TranslationRecommendationUserAction": 21139971
			}
		}
	}
}

JavaScript logging

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

Schema:TranslationRecommendationUserAction

From Meta, a Wikimedia project coordination wiki
Revision 21139971
Jump to navigation Jump to search
description"Logs when users take an action on articles that have been recommended"
properties
requestToken
description"Identifier to associate action with an api request"
type"string"
requiredtrue
pageTitle
description"Title of the page the user is acting on"
type"string"
requiredtrue
action
description"Action taken"
type"string"
requiredtrue
enum
"flag_not_interested"
"flag_not_notable"
"create_from_scratch"
"create_using_content_translation"
targetTitle
description"Title of the page in the target language"
type"string"
requiredfalse