Jump to content

Schema:BrowserWindowSize

PHP logging

EventLogging::logEvent( 'BrowserWindowSize', 13334247, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"BrowserWindowSize": 13334247
			}
		}
	}
}

JavaScript logging

mw.track( 'event.BrowserWindowSize', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 13334247
description"ARCHIVED: Collects sampled data about browser window size and window resizing events."
properties
sessionToken
description"Session token for the current user"
type"string"
action
description"Logs whether browser properties are captured when the page is loaded or when the user modifies the browser window size of an already loaded page."
requiredtrue
enum
"load"
"resize"
type"string"
isMobile
description"Logs whether the event is generated on a mobile device."
requiredtrue
type"boolean"
screenWidth
description"Current screen width (window.screen.width)"
type"integer"
screenHeight
description"Current screen height (window.screen.height)"
type"integer"
browserWidth
description"window.innerWidth, not supported in IE <= 8"
type"integer"
browserHeight
description"window.innerHeight, not supported in IE <= 8"
type"integer"
pixelRatio
description"window.devicePixelRatio, for detecting screen densities"
type"number"
pageName
description"Title of the page currently visited"
type"string"
pageNamespace
description"Namespace ID of the page currently visited"
type"integer"