Schema:MobileWebShareButton

PHP logging

EventLogging::logEvent( 'MobileWebShareButton', 18923688, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"MobileWebShareButton": 18923688
			}
		}
	}
}

JavaScript logging

mw.track( 'event.MobileWebShareButton', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 18923688
description"Measures sharing of pages via the Web Share API browser dialog. Events only logged for UAs that support both the Web Share API (https://caniuse.com/#feat=web-share ) and the Beacon API (http://caniuse.com/#feat=beacon )."
properties
pageTitle
type"string"
description"The title of the page."
requiredtrue
namespaceId
type"integer"
requiredtrue
description"Namespace ID of the page."
isAnon
type"boolean"
description"Is the user viewing anonymously?"
requiredtrue
action
type"string"
enum
"shownShareButton"
"clickShareButton"
"SharedToApp"
description"`shownShareButton` happens when the button becomes visible during page load. `clickShareButton` happens when the user clicks on the button. `SharedToApp` happens when the user selects an app from the sharing menu and the browser passes the link to the selected app (but the user might still abandon the process within that app before the link is actually shared)."
requiredtrue
pageToken
type"string"
description"One-time token per page load, consistent with other schemas that use https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.user-method-getPageviewToken )."
requiredtrue