Jump to content

Schema:HomepageVisit

PHP logging

EventLogging::logEvent( 'HomepageVisit', 20953706, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"HomepageVisit": 20953706
			}
		}
	}
}

JavaScript logging

mw.track( 'event.HomepageVisit', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 20953706
description"Log visits to Special:Homepage (provided by Extension:GrowthExperiments) from the server-side."
properties
is_mobile
type"boolean"
requiredtrue
description"If the event is associated with the mobile web frontend."
referer_route
type"string"
requiredfalse
description"The route the user took to arrive at the Special:Homepage. Calculated by looking at the query parameter."
enum
"userpagetab"
"usertalkpagetab"
"personaltoolslink"
"direct"
"specialconfirmemail"
"specialcontributions"
"specialwelcomesurvey"
"postedit-panel"
"other"
referer_namespace
type"integer"
requiredfalse
description"The namespace associated with the MediaWiki Title (e.g. 0, for Main_Page) that is the referer to this page. Calculated by attempting to load a MediaWiki title from parsing the HTTP REFERER header"
referer_action
type"string"
requiredfalse
enum
"view"
"edit"
"other"
description"The action associated with the user activities on the MediaWiki Title that is the referer to this page. Calculated by looking at the action parameter in the query string of the HTTP REFERER header."
user_editcount
type"integer"
requiredtrue
description"The user edit count."
user_id
type"integer"
requiredtrue
description"User ID, needed for tracking across login sessions."
impact_module_state
type"string"
requiredtrue
enum
"activated"
"unactivated"
description"Activation state of the impact module."
start_email_state
type"string"
requiredtrue
enum
"noemail"
"unconfirmed"
"confirmed"
description"Completion state of the email module."
homepage_pageview_token
type"string"
requiredtrue
description"One-time token per page load. This is a random user session ID that will be exported to the client-side, so that HomepageModule schema events can be associated with this HomepageVisit event."