Hello
@zhaque,
I would suggest you to proceed with JavaScript extension instead going for jQuery extension since you are expecting to go with Custom tracking events. Please find below sample code for your reference to proceed further. If you use JavaScript extension use "document.getElementsByClassName" or "document.getElementById".
var abc = setInterval(function() {
if (document.readyState !== 'complete') return;
clearInterval(abc);
var xyz = document.getElementById('SELECTOR ID').onclick = function()
alert(xyz);
});
Hope it helps! Please let us know if you need any clarifications. Happy Learning!!!