In addition, a new payload property transactionTotal should be able to be sent in the transaction (checkout) event payload. Currently the total sent in the payload typically represents the amount billed (taxes and all). The transactionTotal is essentially the total for the purchase minus the taxes and shipping. Documentation should be updated to reflect both of these changes.
For legacy tracking (is.gif) currencyCode and transactionTotal should be added as query parameters.
Since we cannot always normalize to a base price a
currency
context has been added for tracking different pricing.For Snap tracking we will need to add a function for
setCurrency({ code: 'USD' })
and also a way to provide that via context (similar to setShopper).JSON Payload Examples:
Cart:
Transaction:
In addition, a new payload property
transactionTotal
should be able to be sent in the transaction (checkout) event payload. Currently thetotal
sent in the payload typically represents the amount billed (taxes and all). ThetransactionTotal
is essentially the total for the purchase minus the taxes and shipping. Documentation should be updated to reflect both of these changes.For legacy tracking (is.gif)
currencyCode
andtransactionTotal
should be added as query parameters.