Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Use the method below to log product views.

var data = {
  "OM.pv" : productCode, 
  "OM.pn" : productName, 
  "OM.ppr" : productPrice, 
  "OM.pv.1" : productBrand, 
  "OM.inv": inventory // Number of items in stock
};
visilabsApi.customEvent("Product View", data);

 

You can review the sample usage in line 25. on this page.


Next Step
  • No labels