PHP logging

EventLogging::logEvent( 'WMDEBannerEvents', 19608660, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"WMDEBannerEvents": 19608660
			}
		}
	}
}

JavaScript logging

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

Schema:WMDEBannerEvents

From Meta, a Wikimedia project coordination wiki
Revision 19608660
Jump to navigation Jump to search
description"Logs banner events for WMDE fundraising campaigns"
properties
bannerName
type"string"
requiredtrue
description"Name of the banner"
bannerAction
type"string"
requiredtrue
description"Identifier of the action"
slidesShown
type"integer"
requiredfalse
description"Total number of slides shown to user at time of the event, if applicable"
finalSlide
type"integer"
requiredfalse
description"Slide the user is viewing at the time of the event, if applicable"
eventRate
type"number"
requiredtrue
description"Ratio of recorded events (Between 0.01 and 1)"