Jump to content

Schema:SimpleBanner

PHP logging

EventLogging::logEvent( 'SimpleBanner', 11163678, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"SimpleBanner": 11163678
			}
		}
	}
}

JavaScript logging

mw.track( 'event.SimpleBanner', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 11163678
description"Log click data for a dummy SimpleBanner extension"
properties
bannerName
description"The name of the banner that was shown to the user"
type"string"
requiredtrue
userAction
description"What the user did with the banner"
type"string"
enum
"click"
"dismiss"
requiredfalse