PHP logging

EventLogging::logEvent( 'ReferencePreviewsCite', 19489328, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ReferencePreviewsCite": 19489328
			}
		}
	}
}

JavaScript logging

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

Schema:ReferencePreviewsCite

From Meta, a Wikimedia project coordination wiki
Revision 19489328
Jump to navigation Jump to search
description"Reference Previews interactions logged by the Cite extension, for users with the feature enabled."
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