We use click tracking to measure bounce rate however when disabling talk pages as on https://en.m.wikipedia.beta.wmflabs.org/wiki/Talk:Spain several key HTML markup is lost that prevents us tracking clicks to key components. These are the add discussion button and section headings.
{F34740939}
{F34740941}
For click tracking to work, the clickable item needs to have a `data-event-name` attribute.
=== Open question(s)
- [x] 1. Web Team: in what schema would you value the clicks/taps on the section headings that appear within the mobile "Read as wiki page" talk page view be logged within?
-- `MobileWebUIActions` schema per T295490#7961266.
# Done
- [] A) When people click/tap the {nav Add topic} button that appears within the mobile "Read as wiki page" talk page view, an event ought to be emitted and logged within the `EditAttemptStep` schema using the following event naming format: `data-event-name="talkpage.add-topic"`
- [] B) When people click/tap any section heading that appears on/within the mobile "Read as wiki page" talk page view, an event ought to be emitted and logged within the !!SCHEMA TBD!! using the following event naming format: `data-event-name="talkpage.section"`
- [] Editing Team QTE verifies clients are emitting events as expected
- [] Product Analytics verifies client-side events are being logged as expected on the server
# Developer notes
The data-event-name attribute can be set in HTML or in JS eg..
https://github.com/wikimedia/mediawiki-skins-MinervaNeue/blob/master/resources/skins.minerva.scripts/talk.js#L113