PHP logging

EventLogging::logEvent( 'CentralNoticeBannerHistory', 19079897, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CentralNoticeBannerHistory": 19079897
			}
		}
	}
}

JavaScript logging

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

Schema:CentralNoticeBannerHistory

From Meta, a Wikimedia project coordination wiki
Revision 19079897
Jump to navigation Jump to search
description"Summary of recent items in the client-side log of CentralNotice banner events, for CentralNotice campaigns with the banner history feature enabled"
properties
i
type"string"
requiredtrue
description"Temporary unique ID for this log (used to flag which logs led to a donation)"
r
type"number"
requiredfalse
description"Sampling rate"
e
type"string"
requiredfalse
description"Message about a KVStore error, if any such errors occurred on the current page view"
n
type"integer"
requiredfalse
description"Total number of entries in the banner history log (may be greater than the number sent here)"
l
type"array"
requiredfalse
description"Summary contents of the most recent entries in the banner history log on this client. May be truncated if the EventLogging payload is too big."
items
type"string"
description"Summary of a banner history log entry. Contains the following fields, separated by a '|': banner name, campaign name, timestamp and status of the event"
requiredfalse