== Background
Based on {T287709} and subsequent discussion, we will be creating a schema that tracks whether the user is in the control or test bucket of the sticky header A/B test.
== Acceptance criteria
[] Setup the A/B test schema.
[] Add a configuration option to Vector for controlling whether the sticky header is shown.
[] When the Vector experiment is enabled, make use of `mediawiki.experiments` to determine the bucket (`mw.experiments.getBucket`) and notify WikimediaEvents that an experiment is running (consider calling `mw.track('wikimediaEvents.experiments')`).
[] The WikimediaEvents extension when notified that an experiment is running should log an event which contains:
-- [] the user session ID
-- [] the experiment group the user is assigned to (A or B). This should come from the value of `mw.experiments.getBucket`
-- [] the experiment name (which is communicated to it by Vector)
-- [] the user ID.
[] If no experiment is running the WikimediaEvents should log nothing to the new schema
== Developer notes
The mediawiki experiments module in core, provides a lot of the infrastructure needed here.
```
mw.experiments.getBucket( {
name: 'My first experiment',
enabled: true,
buckets: {
control: 0.5
A: 0.25,
B: 0.25
}
} )
```
Notes on schema came from the events defined in the [[ https://docs.google.com/spreadsheets/d/1xIYNfXMGghVdnCNTjz7ujLm0BHCv6kfMqc9SRGm_MOU/edit#gid=1871341179 | sticky header instrumentation spec ]]