Jump to content

Schema:NewcomerTask

PHP logging

EventLogging::logEvent( 'NewcomerTask', 20877003, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"NewcomerTask": 20877003
			}
		}
	}
}

JavaScript logging

mw.track( 'event.NewcomerTask', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 20877003
description"Logs information about a GrowthExperiments newcomer task (suggested edit)."
properties
newcomer_task_token
type"string"
requiredtrue
description"A token for connecting an instance of this schema to another event, such as a suggested edits module task impression."
task_type
type"string"
requiredtrue
description"The task type ID of the task."
topic
type"string"
requiredfalse
description"The most relevant topic of the task; that is, the highest-scoring of those topics of task which are present in the user's topic filter settings. If the user has not selected any topics in their filter settings, this field is omitted."
match_score
type"number"
requiredfalse
description"Topic matching score for the most relevant topic. Only present when the topic field is."
maintenance_templates
type"array"
items
type"string"
requiredfalse
description"List of maintenance templates (in text form, without namespace prefix) on the article which designated it as a task. Omitted when the task is not template-based."
revision_id
type"integer"
requiredfalse
description"Revision ID of the current version of the article used for the task."
page_id
type"integer"
requiredfalse
description"Page ID of the article used for the task."
page_title
type"string"
requiredtrue
description"Title of the article used for the task (in text form, with page prefix)."
has_image
type"boolean"
requiredtrue
description"Whether the task card has an image."
pageviews
type"integer"
requiredfalse
description"Number of pageviews the article used for the task got in the last 60 days."
ordinal_position
type"integer"
requiredfalse
description"0-based position of the task in a result list. Omitted when only a single task is shown."