One way of doing this would be add the data-event-name HTML attribute to carousel images
The WikimediaEvents MW extension serves as a bridge between the image browser and A/B tests. It expects a specific HTML attribute to track clicks on relevant elements.
It doesn't seem compatible with Vue, and a simple attempt to hardcode the attribute in a HTML template didn't work.
T402020#11126056 provides an initial investigation.
Acceptance criteria
- Define a Vue plugin that introduces event listeners for a given component
- Add the data-event-name HTML attribute in CarouselItem's HTML template