Jump to content

Schema:MobileWebWikiGrokBinary

PHP logging

EventLogging::logEvent( 'MobileWebWikiGrokBinary', 10138046, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebWikiGrokBinary": 10138046
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWebWikiGrokBinary', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 10138046
description"Logs impressions and usage of Extension:MobileFrontend/WikiGrok (binary question version)"
properties
action
type"string"
requiredtrue
enum
"page-impression"
"widget-impression"
"widget-click-nothanks"
"widget-click-accept"
"widget-click-submit"
"widget-click-more"
"widget-impression-success"
description"The actions involved in WikiGrok. - page-impression: the user lands on a page that matches the WikiGrok heuristic criteria (impressions are only logged for eligible users). - widget-impression: the user scrolls the widget into the viewport. - widget-click-nothanks: user taps on the 'no thanks' button. - widget-click-accept: user taps on the 'okay' button to attempt to answer the question. - widget-click-submit: user taps one of the three possible options to answer the question (see response field below). - widget-click-more: user taps the 'Tell me more' link to view more about the feature. - widget-impression-success: The confirmation screen is displayed to the user"
response
type"string"
requiredfalse
enum
"yes"
"no"
"not-sure"
description"Captures the response submitted by the user (only logged on widget-click-submit events)."
userId
type"string"
requiredtrue
description"User ID (eligible logged in users only)."
userEditCount
type"integer"
requiredfalse
description"The edit count of the user viewing WikiGrok."
pageId
type"integer"
requiredtrue
description"ID of the page user is viewing WikiGrok on."
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is using the stable, beta, or alpha version of the mobile site."