Schema:Hovercards

PHP logging

EventLogging::logEvent( 'Hovercards', 7874729, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"Hovercards": 7874729
			}
		}
	}
}

JavaScript logging

mw.track( 'event.Hovercards', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 7874729
description"Basic analytics for Popups Extension"
properties
sessionId
type"string"
description"Unique sessionId"
duration
type"integer"
description"Duration in milliseconds for how long the popup was displayed."
requiredtrue
action
type"string"
enum
"dismissed"
"opened in new tab"
"opened in new window"
"opened in same tab"
description"What action was taken after the popup was displayed."
requiredtrue