Jump to content

Schema:TaskRecommendationImpression

PHP logging

EventLogging::logEvent( 'TaskRecommendationImpression', 9266226, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"TaskRecommendationImpression": 9266226
			}
		}
	}
}

JavaScript logging

mw.track( 'event.TaskRecommendationImpression', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 9266226
description"Logs an impression of task recommendations delivered by the GettingStarted extension. One event should be logged impression of tasks."
properties
setId
type"string"
requiredtrue
description"An identifier for a recommendation set. The string in this field will be unique and consistent for the page or set of pages that are recommended together (in one impression)."
userId
type"integer"
requiredtrue
description"ID of the user being given recommendations."
pageId
type"integer"
requiredtrue
description"The ID of source page which the recommendations were based on."
interface
type"string"
requiredtrue
enum
"post-edit"
"flyout"
description"The interface the recommendation was given through."
offset
type"integer"
requiredtrue
description"The offset of the current view of the recommendation set. This should be set to zero for page 1 and N*1 for page two where N is the number of recommendations per page."