Jump to content

Schema:ImageMetricsCorsSupport

PHP logging

EventLogging::logEvent( 'ImageMetricsCorsSupport', 11686678, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"ImageMetricsCorsSupport": 11686678
			}
		}
	}
}

JavaScript logging

mw.track( 'event.ImageMetricsCorsSupport', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 11686678
description"CORS support stats."
properties
xhrSupported
type"boolean"
requiredtrue
description"True if the browser supports CORS AJAX requests (with credentials - older, partial support is undetected)"
xdomainSupported
type"boolean"
requiredtrue
description"True if the browser supports XDomainRequest (CORS replacement in old IE)"
imgAttributeSupported
type"boolean"
requiredtrue
description"True if the browser supports the crossorigin attribute in an <img> tag"
scriptAttributeSupported
type"boolean"
requiredtrue
description"True if the browser supports the crossorigin attribute in a <script> tag"
scriptLoaded
type"boolean"
requiredtrue
description"True if the crossorigin script has been successfully loaded"
sanityCheck
type"boolean"
requiredtrue
description"True if a normal script has been successfully loaded"
country
type"string"
description"Client's country (per geolocation)"
isHttps
type"boolean"
requiredtrue
description"Whether the content was loaded over https or not"
isAnon
type"boolean"
requiredtrue
description"Whether the user is logged in or not"
samplingFactor
type"integer"
requiredtrue
description"Sampling factor"