Track ecommerce on-click?

I would like to track product page views as described here: Ecommerce Analytics - Analytics Platform - Matomo
but, instead of sending pwik the information when the page is viewed, can I send if on-click?

The longer reason for this, is on my site I use a table with PayPal Buy Now buttons for each product. I would like to record which products users are interest in as sometimes people click the Buy Now button but do not follow through with the purchase. I would like to add the on-click tracking to the buy now button. I already have it tracking this as a page view but wanted to make the most of the ecommerce features?

Yes you can

How? What would I need to put in the tag?