https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaEvents/+/master/modules/ext.wikimediaEvents/testKitchen/loggedOutReaderRetention.js should call sendExposure() before T421740: Switch experiment_assignment_v1 to use experiment_exposure events happens, so that we can continue to have these repeat A/As analyzed in GrowthBook.
Let's also address some minor issues with the code.
Acceptance criteria
- sendExposure() is called before send()
- send( 'page-visited' ) is replaced with send( 'page_visit' ), per https://wikitech.wikimedia.org/wiki/Test_Kitchen/Interaction_data#Data_modeling_guidelines_and_recommendations (note: the metric definition in GB currently uses both event names)
- Interaction data does not include instrument_name, as instrument_name should be reserved for the machine name of instruments configured with TK UI
- Events are sent to the base stream