...
Note |
---|
Most apparel companies prefer to break down to only color level since the size does not matter much in terms of product personalization. |
...
Product View Event
Code Block |
---|
language | js |
---|
title | Product View Event |
---|
linenumbers | true |
---|
|
<script type="text/javascript">
function OnVisilabsLoaded(){
var VL = new Visilabs();
VL.AddParameter("OM.pv","Variant ID");//VL.AddParameter("OM.pv","PCShirt123-BL");
VL.AddParameter("OM.pn","Product Name");
VL.AddParameter("OM.inv" , "Number of items in stock");
VL.AddParameter("OM.ppr", "Product Price");
VL.AddParameter("OM.pv.1", "Product Brand");
VL.AddParameter("OM.pv.2", "Item Group ID");//VL.AddParameter("OM.pv.2", "PCShirt123");
VL.Collect();
VL.SuggestActions();
}
</script> |
...
Add To Cart Event
Code Block |
---|
language | js |
---|
title | Add To Cart Event |
---|
linenumbers | true |
---|
|
<script type="text/javascript">
function OnVisilabsLoaded(){
var VL = new Visilabs();
VL.AddParameter("OM.pbid","Basket ID");
VL.AddParameter("OM.pb","Variant Code 1;Variant Code2");
VL.AddParameter("OM.pb.2","Item Group ID 1;Item Group ID 2");
VL.AddParameter("OM.pu" ,"product Quantity 1;product Quantity 2")
VL.AddParameter("OM.ppr" ,"Product Price1*Product Quantity 1;Product Price2*Product Quantity2");
VL.Collect();
VL.SuggestActions();
}
</script> |
...
Product Purchase Event
Code Block |
---|
language | js |
---|
title | Product Purchase Event |
---|
linenumbers | true |
---|
|
<script type="text/javascript">
function OnVisilabsLoaded(){
var VL = new Visilabs();
VL.AddParameter("OM.tid","TransactionID");
VL.AddParameter("OM.pp","Variant Code 1;Variant Code2");
VL.AddParameter("OM.pp.2","Item Group ID 1;Item Group ID 2");
VL.AddParameter("OM.pu","product Quantity 1;product Quantity 2");
VL.AddParameter("OM.ppr","Product Price1*Product Quantity 1;Product Price2*Product Quantity2");
VL.AddParameter("OM.exVisitorID","User ID");
VL.Collect();
VL.SuggestActions();
}
</script> |
...
Product File
Variants appear in rows. In the product file, you must have one product variant per row. Let’s say you have 4 variants: Blue, Red, Green, Yellow within the same product, you will have 4 rows, one for each variant, and they will all be grouped under the same Item Group ID.
...