I want to obtain the event during which this Mini cart update cart button is clicked
I want to observe when and how many the amount of it being clicked
I try to put below code inside app/design/frontend/MageBig/martfury/myproject/Magento_Catalog/templates/gtm_body.phtml
require(['jquery'], function($){
$(document).ready(function() {
$('button.update-cart-item').click(function(e){
e.preventDefault();
alert("Clicked");
})
})
})
but it does not seems to work,
If I try putting directly into console in chrome browser it is working
Not sure how do I obtain this click event. Anyone can help give suggestions?
Any help is kindly appreciated, attached below is the inspect element tab view

