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. Some object properties are required while others are optional.
The only required property is unitPrice
.
The optional properties are as follows:
itemId
quantity
You shouldn't send empty strings for optional property values. Only send properties that have a value.
Monetate Inspector Example
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.
Code Samples
// addConversionRows Method window.monetateQ.push([ "addConversionRows", [{ "itemId": "conversionNameString", "quantity": "quantityString", "unitPrice": "valueString", }] ]);
// addConversionRows Example window.monetateQ = window.monetateQ || []; window.monetateQ.push([ "addConversionRows", [{ "itemId": "email_signup", "quantity": "1", "unitPrice": "1.00" }, { "itemId": "invites_sent", "quantity": "3", "unitPrice": "1.00" }] ]); window.monetateQ.push([ "trackData" ]);