Method Calls

addProductDetails

addproductdetails method // addproductdetails method window\ monetateq push(\[ "addproductdetails", \["pidstring", "pidstring", "pidstring"] ]); use the addproductdetails method to add items when a customer views a more detailed product description on a product detail page this type of page is usually linked from an index or search page thumbnail some product detail pages may have several items described a product id (pid) can have a maximum of 50 characters any pid that exceeds this length is truncated after 50 characters monetate inspector view this screenshot shows the components tab of the monetate inspector browser plug in the products row indicates that the addproductdetails method has passed pid values as well as product sku values although both pid and sku are required in a product catalog , you're only required to implement method calls for pid you should implement sku if you intend to use product recommendations or target by sku older deployments may require a script update to add sku support for the method contact your services team for more information the components tab of monetate inspector, with product in the page type row and both product ids and product skus in the products row code examples addproductdetails example // addproductdetails example window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\[ "addproductdetails", \["a123"] ]); window\ monetateq push(\[ "trackdata" ]); single sku example window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\[ "addproductdetails", \[{ productid "pidstring", sku "skustring" }] ]); window\ monetateq push(\[ "trackdata" ]); multiple skus example window\ monetateq = window\ monetateq || \[]; window\ monetateq push(\[ "addproductdetails", \[ { productid "pidstring", sku "skustring 01" }, { productid "pidstring", sku "skustring 02" }, { productid "pidstring", sku "skustring 03" }] ]); window\ monetateq push(\[ "trackdata" ]);