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. 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.

You don't need to send an additional API call with addCartRows to empty the cart after a conversion.

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.

The Components tab of Monetate Inspector, with a value in the Purchase ID row and with unit price, product ID, and quantity for multiple non-monetary conversion products in the 'Cart Products' rows

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"
]);