Jump to content

Schema:MobileBetaWatchlist

PHP logging

EventLogging::logEvent( 'MobileBetaWatchlist', 5281061, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileBetaWatchlist": 5281061
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileBetaWatchlist', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 5281061
description"Used to log watchlist star actions on Wikimedia mobile beta sites"
properties
token
type"string"
requiredtrue
description"Anonymized, persistent user token to ensure we can de-duplicate users."
anon
type"boolean"
requiredtrue
description"False if user has logged in."
action
type"string"
requiredtrue
enum
"watchlist"
"unwatchlist"
"anonCTA"
description"watchlist - user taps an empty watchlist star and adds the article to their watchlist; unwatchlist - user taps a filled star on an article they've already watchlisted to remove from watchlist; anonCTA - logged out user taps empty watchlist star, which takes them to the login/create account page."
articleID
type"integer"
description"Internal ID (wgArticleId) of the article with which the user is tinkering"
username
type"string"
description"Username for logged in user."
isStable
type"string"
enum
"stable"
"beta"
"alpha"
description"Whether the user is seeing the regular non-beta, beta, or alpha version of the mobile site."