Is it possible to extend the trackTransaction meth...
# suitecommerce
c
Is it possible to extend the trackTransaction method in SCS? Looking to add to the event data.
Specifically, I need to add to the eventData for trackTransaction. Any suggestions? I did see how you can add custom trackers; however, having a hard time wrapping my head around how to extend the trackTransaction function. Any suggestions would be greatly appreciated. Thank you in advance.
c
Iirc, the afterSubmit event fires before the core trackTransaction method. So you can probably use this:
Copy code
var cart = container.getComponent('Cart');
if (cart) {
	cart.on('afterSubmit', function (result) {
        <add your event data here....>
    });
}