addConversionRows
The addConversionRows method is used to track non-monetary conversions on your site. The method data is an array of objects. Each row is an object with properties specific to the conversion.
The only required property is unitPrice.
The optional properties are as follows:
- itemId
- quantity
Don't send empty strings for optional property values. Only send properties that have a value.
You don't need to send an additional API call with the addCartRows method to empty the cart after a conversion.
This screenshot shows the required unitPrice property as well as the optional product ID and quantity as they appear in the Monetate Inspector browser plug-in.
This code example contains the method in use that results in the Monetate Inspector results shown in the previous screenshot.