PHP logging

EventLogging::logEvent( 'WMDEBannerInteractions', 19499437, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"WMDEBannerInteractions": 19499437
			}
		}
	}
}

JavaScript logging

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

Schema:WMDEBannerInteractions

From Meta, a Wikimedia project coordination wiki
Revision 19499437
Jump to navigation Jump to search
description"Stores the number of times a banner has been shown before it was interacted with."
properties
bannerName
type"string"
requiredtrue
description"Name of the banner"
bannerAction
type"string"
requiredtrue
enum
"banner-closed"
"banner-clicked"
description"Identifier of the action"
bannerImpressions
type"integer"
requiredtrue
description"The number of times the banner has been shown at the time of the action"