Christopher Dembek
10/18/2022, 12:43 PMaddTracker( Tracker )
method to push additional data to Google Tag Manager?
How would I adjust the example from the help guide?
https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/Environment.html#addTracker
var myTracker = {
trackAddToCart: function(line) {
_exampleTrackingService.logShoppingEvent(
'addToCart',
{
name: line.item.displayname,
sku: line.item.itemid,
amount: line.amount,
quantity: line.quantity
}
);
}
}
Christopher Dembek
10/18/2022, 3:09 PMChris
10/21/2022, 2:27 PMafterSubmit
fires after the order is successfully placed in NS, but before the GTM trackTransaction
method fires. You should be able to place extra stuff in the dataLayer
variable and then handle in however you want from GTM.