PHP logging

EventLogging::logEvent( 'WMDEBannerSizeIssue', 18193993, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"WMDEBannerSizeIssue": 18193993
			}
		}
	}
}

JavaScript logging

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

Schema:WMDEBannerSizeIssue

From Meta, a Wikimedia project coordination wiki
Revision 18193993
Jump to navigation Jump to search
description"Store viewport size for WMDE fundraising banners that weren't shown because they would have obscured the content too much"
properties
bannerName
type"string"
requiredtrue
description"Name of the banner"
viewportWidth
type"integer"
requiredtrue
description"Viewport width in pixel"
viewportHeight
type"integer"
requiredtrue
description"Viewport height in pixel"
bannerHeight
type"integer"
requiredtrue
description"How many pixel high the banner would have been"
eventRate
type"number"
requiredtrue
description"Ratio of recorded size issues (between 0.01 and 1)"