PHP logging

EventLogging::logEvent( 'ReferencePreviewsBaseline', 21143800, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ReferencePreviewsBaseline": 21143800
			}
		}
	}
}

JavaScript logging

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

Schema:ReferencePreviewsBaseline

From Meta, a Wikimedia project coordination wiki
Revision 21143800
Jump to navigation Jump to search
description"Cite extension interactions for users without Reference Previews enabled. Sampling is hardcoded to 1:1000."
properties
action
type"string"
enum
"pageview"
"clickedFootnote"
"clickedReferenceContentLink"
description"`pageview` happens once at the beginning of each pageview. `clickedFootnote` happens when a user clicks a footnote link in article content. `clickedReferenceContentLink` happens when a link within the reference itself is clicked."
requiredtrue