PHP logging

EventLogging::logEvent( 'SignupExpPageLinkClick', 9074560, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"SignupExpPageLinkClick": 9074560
			}
		}
	}
}

JavaScript logging

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

Schema:SignupExpPageLinkClick

From Meta, a Wikimedia project coordination wiki
Revision 9074560
Jump to navigation Jump to search
description"Represents a click on three specific links relevant to the Signup CTA Expement: edit page, edit section and create account."
properties
token
type"string"
requiredtrue
description"The randomly generated, identifying token"
bucket
type"string"
enum
"control"
"pre-edit v1"
"pre-edit v2"
description"Bucket defining what version (if either) of the experimental UIs will be shown to the user. * control -- no CTA * pre-edit v1 -- The original version of the pre-edit CTA that hides the "continue editing" button and has a header that might suggest that registration is necessary * pre-edit v2 -- The new version of the pre-edit CTA that calls more attention to the "continue editing button" and clearly states that signing up is optional."
requiredtrue
link
type"string"
enum
"edit page"
"edit section"
"create account"
description"Specifies which link was clicked by the user: * edit page -- The edit link at the top of the page was clicked. * edit section -- A section edit link was clicked. * create account -- The "create account" link at the top of the page was clicked"
requiredtrue
namespace
type"integer"
description"Specifies the namespace of the current page."
requiredtrue