Context
For the experiment we want to track the clicks on the "go to reference" link in the ReferencePreviews. This will be monitored in the A/B test. See Parent ticket
Metadata needed
- source wiki
- timestamp
- logged-in status ( anon / not anon )
- edit count buckets
(Note:
These are all part of the default web schema. So no need for a custom schema here.
performer_edit_count_bucket must be configured in the test setup UI under Contextual Attributes)
TBD: check what retention metrics are already provided by Test Kitchen. For example, how long the user is on a page before leaving, and whether the same unique user returns to the page.
Events
- experiment_exposure user visits a page and is either in the control or the treatment group
- click-footnote-marker user clicks on the footnote marker (to scroll down in the control group, or to pop up reference preview with link in the treatment group)
- click-footnote-marker-twice user in the treatment group clicks on the same footnote marker for a second time, while the reference preview is open
- click-toc-link user clicks in the toc to scroll down tot the refrences list
- click-goto-references user clicks on the Go to references list link in the treatment group
- initial-pageview-shows-references sent after page render, if the article is short enough that the references list is already visible on page load.
- scrolled-to-references user has scrolled the page and the references list becomes visible.
- no-toc-tracking-attached sent when the references TOC tracking could not be attached
Implementation
- Add tracking logic in ext.cite.track.js
- Replace current tracking logic from the baseline
- Create a new unique key for the experiment's name