Before we promise product teams that they can configure their instruments with xLab UI, we need to make sure that an instrument deployed to production and configured with xLab UI works as it should.
We can continue to build on pageVisit.js and instrument pageviews outside of the synthetic A/A tests we're running.
Instrumentation specification
| Metric | Event to be tracked | Interaction data |
|---|---|---|
| Page visits | Page visited | action: page-visited |
Instrument configuration
| Detail | Configuration |
|---|---|
| Instrument name (machine-readable name) | Page Visits Demo (page-visits-demo) |
| Start date | 2025-06-23 |
| End date | 2025-06-25 |
| Schema | Web base |
| Stream | Web base (default) |
Sampling
Sampling unit: Pageview
Sampling rates:
- 1.0 (100%) on Test (test.wikipedia.org)
- 0.001 (0.1%) on English Wikipedia
- 0.01 (1%) everywhere else
Contextual attributes
- agent_client_platform
- agent_client_platform_family
- mediawiki_database
- mediawiki_skin
- performer_is_logged_in
- performer_is_temp
- performer_pageview_id
- mediawiki_version
Data collection risk assessment
Per data collection guidelines: Low risk
Open questions
Question 1: If
const pageVisitInstrument = mw.eventLog.newInstrument( "page-visits-demo" );
then would pageVisitInstrument.submitInteraction ( "page-visited" ) produce an event where instrument_name is set to "Page Visits Demo" (the name of the instrument as configured in xLab)?
If that's the expectation, we should add it to AC.
Acceptance criteria
- An instrument is deployed to production, but is not collecting data until it has been configured and activated in xLab
- Events flowing into the product_metrics.web_base stream from this instrument have all the listed contextual attributes and none of the unlisted contextual attributes
- especially mediawiki_version which is not included in the base stream configuration, but is included here
- not performer_active_browsing_session_token which is included in the base stream configuration, but is not included here
- Events are queryable from the event.product_metrics_web_base table
- There are events from all production wikis


