I’m currently working on a plugin to extend the functionality of the Ecommerce part of Matomo to reach the level of what GA4 offers.
I’m looking to extend the JS functions (piwik.js) to add functions via the plugin :
trackProductViewInList()
trackProductClickInList()
I can’t figure out how to do this so that these methods can call private functions like trackCallback.