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.