Let's instrument the share button (T181195) to verify users need this functionality.
We can share the following metrics:
- [[https://en.wikipedia.org/wiki/Click-through_rate|clickthrough rate]] of the Share button
- abandonment rate (defined as the percentage of share button clicks, i.e. openings of the share menu, that are not followed by the selection of a sharing app from that menu)
- the number of pageviews from shared links (by adding a [[https://wikitech.wikimedia.org/wiki/Provenance | wprov]] URL parameter)
Draft sSchema: https://meta.wikimedia.org/wiki/Schema:MobileWebShareButton
= QA Steps
== Verify eEvents get sent on clickLogging events ==
- Visit beta cluster on a phone which supports share (e.g. Android+Chrome)
- Enable beta mode
- Visit https://en.wikipedia.beta.wmflabs.org/wiki/Spain
-- Verify an event is sent on pageload with `action`="shownShareButton", `pageTitle`="Spain", `namespaceId`=0. Note the value of `pageToken`
- Click share link
-- Verify an event is sent with `action`="clickShareButton" and the same values for `pageTitle`, `namespaceId` and `pageToken` as above.
- Verify that event showsSelect an app from the sharing menu (e.g. the clipboard), to have the browser pass the link to that app
-- Verify an event is sent with `action`="SharedToApp" and the same values for `pageTitle`, `namespaceId` and `pageToken` as above.
PASSED
== Verify clicks to that URL are logged in page view tables
Not sure how to verify this.provenance parameter ==
We'd need to share that link somewhere, click it, and then check if it shows up in a page view table. Can we do this on beta cluster?
Check that the link passed to the sharing app looks like this: `https://en.wikipedia.beta.wmflabs.org/wiki/Spain?wprov=mfsw1`