Page MenuHomePhabricator

[Epic] Share Action experiment
Open, HighPublic

Assigned To
None
Authored By
SherryYang-WMF
Feb 4 2026, 1:58 AM
Referenced Files
F72447442: image.png
Tue, Mar 3, 7:53 PM
F72447439: image.png
Tue, Mar 3, 7:53 PM
F72447435: image.png
Tue, Mar 3, 7:53 PM
F72447431: image.png
Tue, Mar 3, 7:53 PM

Description

We want to test a share action on mobile article pages, allowing readers to share Wikipedia articles (and eventually highlighted passages) to other platforms via the Web Share API. This is an experiment: we will deliver it to a subset of readers via an A/B test, collect usage data for approximately one month, and then turn the experiment off. If results are encouraging, a follow-up project may scale the feature to production.

Design Mockups

Designer: @JScherer-WMF

image.png (1×1 px, 952 KB)

image.png (1×2 px, 2 MB)

image.png (1×3 px, 562 KB)

image.png (1×1 px, 1 MB)

Background

The Reader Growth team has been exploring a "Share Highlights" concept: what if readers could select article text, generate a styled quote card image, and share it to social platforms with a link back to the source? A spike (T414400) confirmed this is technically feasible as a client-side MVP using the Selection API, html2canvas, text fragment URIs, and the Web Share API.

Based on further discussion, we are starting with a simpler article-level share before committing to selection-level (quote) sharing. The rationale:

  • Article-level share is simpler to build, test, and interpret — fewer edge cases (text extraction, CJK word boundaries, selection UX on mobile)
  • It gives us a baseline signal for whether readers engage with share actions at all, before investing in the more complex quote flow
  • The entry point (a persistent share button in the article chrome) has better discoverability than a selection-triggered popover

Quote-level sharing remains a potential follow-up if article-level share shows promise.

Parallel: Baseline measurement (T416945)

Separately, T416945 is measuring how often readers currently arrive via Google text fragment highlights and how often they highlight article text on their own. This work runs in parallel and does not block the experiment. The data may inform whether and how we pursue selection-level sharing in the future.

Approach

MVP: Article-level share

Entry point: A share icon button in the top chrome of mobile article views (always visible).

User flow:

  1. Reader taps the share button
  2. A dialog opens showing a rich preview card: article title, lead image (page image from the Page Previews API plus a graphic of the article's summary text as a stylized quote), and a short summary
  3. Reader taps "Share" within the dialog → native share sheet opens via the Web Share API
  4. The shared link points to the article URL (potentially with a text fragment in the future)

Technical components:

  • Share button integration in Minerva article header
  • Codex Dialog component for share preview
  • Client-side image generation (T417099) — render the share card (article title, page image, summary text from Page Previews API) into a shareable image
  • Page Previews API for card content (title, image, summary)
  • Web Share API integration (navigator.share())
  • Fallback behavior for browsers without Web Share API support (e.g. copy-to-clipboard or download)
  • Experiment instrumentation (funnel: button tap → dialog open → share initiated → share completed)

Platform: Mobile web. The Web Share API is well-supported on mobile browsers (Android Chrome, iOS Safari). For browsers where this is not supported (including Minerva users on desktop), the download action is available as a fallback.

Backlog: Quote-level share

The following subtasks are scoped to selection-level (quote) sharing. They remain in the backlog and are not committed to for this experiment:

  • T417104: Selection event handling and text extraction
  • T417105: Text fragment URL generation
  • T417067: CJK text fragment support for zh wiki

Also out of scope for now are user-selectable images in the card – we are just going to use page image (if present) for the time being.

If article-level results are encouraging, these would form the basis of a follow-up experiment or could be folded into a scaling project.

Experiment Design

Type: A/B test via the Test Kitchen framework within the ReaderExperiments extension
Duration: ~1 month of data collection
Target wikis: TBD — likely the standard pilot set (ar, zh, fr, id, vi, en Wikipedias) but this needs confirmation given the nature of the feature. Sharing behavior may vary significantly across language communities.
Audience: Logged-out mobile readers (specifics TBD)
Control: Current experience (no share button)
Treatment: Share button visible in article chrome

Success Metrics

TBD – will likely involve tracking share action completion as primary, and maybe some of the earlier steps in the funnel as secondary. We may also want guardrail metrics around retention as in previous experiments.

Open Questions

  • What is the final set of target wikis? The standard six, or a different selection?
  • What does the fallback look like on browsers that don't support the Web Share API?
  • What metadata goes on the share card within the dialog? (The designs at T418602 should answer this — may need to align on final spec)
  • Are there any remaining community concerns? Previous share experiments drew pushback over hard-coded social network buttons/logos in the Wikipedia UI (noted in T414400). We avoid this by using the native Web Share API — readers share via whatever apps they already have on their device. This approach was reviewed with community members in a Discord call and received positive feedback.

Links

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@SherryYang-WMF: Please set code project tags (and optionally, team project tags) so people can find tasks when searching via projects or looking at workboards. Which codebase and which team is this about? Thanks!

SherryYang-WMF moved this task from Incoming/Inbox to Backlog on the Reader Growth Team board.
Restricted Application added a subscriber: alaa. · View Herald TranscriptTue, Mar 3, 7:53 PM
egardner renamed this task from [Epic] Share Highlights experiment to [Epic] Share Action experiment.Tue, Mar 3, 7:53 PM
egardner attached a referenced file: F72447439: image.png. (Show Details)
egardner attached a referenced file: F72447435: image.png. (Show Details)
egardner attached a referenced file: F72447431: image.png. (Show Details)
egardner updated the task description. (Show Details)
egardner updated the task description. (Show Details)