Use the addProducts method to add products that a site visitor views on index, product list, category list, or search results pages.

A product ID (PID) can have no more than 50 characters. The API call fails if any PID exceeds this limit.

Monetate Inspector Example

This screenshot shows the Components tab of the Monetate Inspector browser plug-in. The Product IDs row indicates that the addProducts method has passed multiple PID values.

Screenshot of Monetate Inspector with product IDs populating the Product IDs row

Code Samples

A pidString value can include letters and numbers. Whitespaces are not supported.

// addProducts Method
  "addProducts", ["pidString",
// addProducts Example
window.monetateQ = window.monetateQ || [];
  "addProducts", ["a123",