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.
For click tracking to work, the clickable item needs to have a data-event-name attribute.
- Clicks should be recorded when add discussion is clicked (data-event-name="talkpage.add-topic")
- Clicks should be recorded when headings are clicked (data-event-name="talkpage.section")
The data-event-name attribute can be set in HTML or in JS eg..