Method Calls

addProducts

addProducts Method


Use the addProducts method to add products that a site visitor views on index, product listing, category listing, 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 View

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.

The Components tab of Monetate Inspector, with product IDs in the Product IDs row


This code example contains the method in use that results in the Monetate Inspector results shown in the previous screenshot.

addProducts Example