PHP logging

EventLogging::logEvent( 'LandingPageImpression', 18146199, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"LandingPageImpression": 18146199
			}
		}
	}
}

JavaScript logging

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

Schema:LandingPageImpression

From Meta, a Wikimedia project coordination wiki
Revision 18146199
Jump to navigation Jump to search
description"FundraiserLandingPage pageview events"
properties
country
type"string"
requiredfalse
language
type"string"
requiredfalse
uselang
type"string"
requiredfalse
utm_source
type"string"
requiredfalse
utm_campaign
type"string"
requiredfalse
utm_medium
type"string"
requiredfalse
utm_key
type"string"
requiredfalse
contact_id
type"string"
requiredfalse
link_id
type"string"
requiredfalse
template
type"string"
requiredfalse
appeal
type"string"
requiredfalse
appeal_template
type"string"
requiredfalse
form_template
type"string"
requiredfalse
form_countryspecific
type"string"
requiredfalse
landingpage
type"string"
requiredtrue
description"The full page name of the wiki page viewed, including the namespace."
sample_rate
type"number"
requiredfalse
description"Sample rate used for logging these events."