Jump to content

Schema:CentralNoticeBannerHistory

PHP logging

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

extension.json setup for JavaScript logging

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

JavaScript logging

mw.track( 'event.CentralNoticeBannerHistory', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 21589561
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