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
description | "CORS support stats." |
---|
properties | xhrSupported | type | "boolean" |
---|
required | true |
---|
description | "True if the browser supports CORS AJAX requests (with credentials - older, partial support is undetected)" |
---|
|
---|
xdomainSupported | type | "boolean" |
---|
required | true |
---|
description | "True if the browser supports XDomainRequest (CORS replacement in old IE)" |
---|
|
---|
imgAttributeSupported | type | "boolean" |
---|
required | true |
---|
description | "True if the browser supports the crossorigin attribute in an <img> tag" |
---|
|
---|
scriptAttributeSupported | type | "boolean" |
---|
required | true |
---|
description | "True if the browser supports the crossorigin attribute in a <script> tag" |
---|
|
---|
scriptLoaded | type | "boolean" |
---|
required | true |
---|
description | "True if the crossorigin script has been successfully loaded" |
---|
|
---|
sanityCheck | type | "boolean" |
---|
required | true |
---|
description | "True if a normal script has been successfully loaded" |
---|
|
---|
country | type | "string" |
---|
description | "Client's country (per geolocation)" |
---|
|
---|
isHttps | type | "boolean" |
---|
required | true |
---|
description | "Whether the content was loaded over https or not" |
---|
|
---|
isAnon | type | "boolean" |
---|
required | true |
---|
description | "Whether the user is logged in or not" |
---|
|
---|
samplingFactor | type | "integer" |
---|
required | true |
---|
description | "Sampling factor" |
---|
|
---|
|
---|