Matomo to track woocommerce

I am using matomo in wordpress, and I need to know how to track the update of the cart. When enable the ecommerce, it will track when the single product is added to acrt, or when checkout.

But, during the update of quantity or removal of item, the cart will not be updated in matomo analysis. It will only update the final quantity when the checkout has been made.

My question is how to update Matomo Analysis (Grand total but is updated) everytime the user is updating the shopping cart.

Is there any sample of code for that?