Jump to content

Schema:CommunityPortal

PHP logging

EventLogging::logEvent( 'CommunityPortal', 4948295, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CommunityPortal": 4948295
			}
		}
	}
}

JavaScript logging

mw.track( 'event.CommunityPortal', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 4948295
description"Used by Community portal"
properties
token
type"string"
requiredtrue
description"anonymous user token (not yet a built-in field)"
anon
type"boolean"
requiredtrue
description"False if user has logged in."
action
type"string"
requiredtrue
description"Values are community-portal-visit, accept, view, edit, submit, history, ... other wgActions, save-attempt (coming), save-success."
task
type"string"
description"The kind of task Community portal, e.g. 'Fix spelling and grammar'"
title
type"string"
description"Article the user accepted as a task. Only available in action=accept (when articleID is not available); derived from title attr of the link the user clicked."
articleId
type"integer"
description"Internal ID (wgArticleId) of the article with which the user is tinkering ('edit', 'complete', etc. actions)"
revId
type"integer"
description"Revision ID of the article with which the user is tinkering ('edit', 'complete', etc. actions)"
ns
type"integer"
description"Namespace number of the article with which the user is tinkering (probably 0 for all Community portal tasks)"
userId
type"integer"
description"User ID from MediaWiki database"
editCount
type"number"