PHP logging

EventLogging::logEvent( 'RecentChangesTopLinks', 16732249, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"RecentChangesTopLinks": 16732249
			}
		}
	}
}

JavaScript logging

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

Schema:RecentChangesTopLinks

From Meta, a Wikimedia project coordination wiki
Revision 16732249
Jump to navigation Jump to search
description"Logs clicks on the top links on Special:Recentchanges (from MediaWiki:Recentchangestext)"
properties
url
type"string"
description"URL that the link goes to (href)"
label
type"string"
description"Text of the link"
loggedIn
type"boolean"
description"Whether the user was logged in"