Hi Kishore ,
Thanks for reaching out to Adobe community.
For the use case described above , we can track the button click by writing the custom javascript code in the event rule. You can use the following link to setup the Event based rule for button click https://marketing.adobe.com/resources/help/en_US/dtm/rules_event.html and can use the below custom code in custom code section.
Var button_name= this.getAttribute( "name");
s.linkTackVars="prop60,eVar60,events";
s.linkTrackEvents="event35";
s.prop60=button_name;
s.eVar60=prop60;
s.events="event35";
Please feel free to reach out to us in case of any queries.
Thanks & Regards
Parit Mittal