PHP logging

EventLogging::logEvent( 'MobileWebCta', 5972684, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebCta": 5972684
			}
		}
	}
}

JavaScript logging

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

Schema:MobileWebCta

From Meta, a Wikimedia project coordination wiki
Revision 5972684
Jump to navigation Jump to search
description"Logs effectiveness of CTAS"
properties
status
type"string"
requiredtrue
description"The different statuses associated with a CTA. Did the user see them? Did the user act upon it?"
campaign
type"string"
requiredfalse
description"Name of campaign"
campaignStep
type"integer"
requiredfalse
description"The 'step' in the campaign"
userEditCount
type"integer"
description"Number of edits before the edit occurred. For example on a successful first edit the edit count will be 0"
username
type"string"
description"Username for logged in user."
mobileMode
type"string"
requiredtrue
enum
"stable"
"beta"
"alpha"
description"Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."