Jump to content

Schema:RelatedArticles

PHP logging

EventLogging::logEvent( 'RelatedArticles', 16352530, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"RelatedArticles": 16352530
			}
		}
	}
}

JavaScript logging

mw.track( 'event.RelatedArticles', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 16352530
description"Logs engagement with the RelatedArticles extension"
properties
skin
type"string"
description"The skin being used. (For mobile beta use minerva-beta)"
requiredtrue
pageId
requiredtrue
type"integer"
description"ID of the page user is on."
eventName
type"string"
requiredtrue
enum
"feature-enabled"
"feature-disabled"
"ready"
"seen"
"clicked"
description"feature-enabled - the read more code is enabled for the current device. Logged as soon as code loads. feature-disabled - the read more code is disabled for the current device. Logged as soon as code loads. ready - when the read more code is ready. seen - when the read more section is first scrolled into view. clicked - when the user clicks on a read more link."
clickIndex
type"integer"
requiredfalse
description"The index of the related article that was clicked on. Indices start at 1. This property is required when the eventName property is 'clicked'."
userSessionToken
description"User session token for this funnel. This is used to identify the full interaction with the related articles events."
type"string"
requiredtrue