How to count number of button clicks on a repeater linked to a data set?

The repeater I am using is connected to a content manager data set though so it does not give the option to add “on click” events. Do you know how to add these events with each specific button for each item in a data set from the content manager that is connected to a repeater?