Warning |
---|
If you offer different product variations (such as size, colour, material, etc) than your integration will slightly be different, please follow the guidelines on the Product Variant page. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript"> function OnVisilabsLoaded(){ var VL = new Visilabs(); VL.AddParameter("OM.tid","TransactionID"); VL.AddParameter("OM.pp","Product Code1;Product Code2"); 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> |
Note | ||
---|---|---|
| ||
-SuggestActions() function must be called only once on every page. Otherwise recommendation won't work properly. - You must define OnVisilabsLoaded() before calling it. You can do it by inserting the OnVisilabsLoaded() code before the RMC main script. - OnVisilabsLoaded function must be defined only once on every page. When a page has multiple event triggers, for example: Product Page Viewand CartUpdate(Add to/Remove from Cart) event can be triggered on same page; 2 functions must be defined with different names. In this case, since the OnVisilabsLoaded name defined for Product Page View, function name for CartUpdate(Add to/Remove from Cart)event must be something else and this function must be called when CartUpdate(Add to/Remove from Cart) event triggers. Example function definition and call for CartUpdate(Add to/Remove from Cart) event: definition: function rdAddtoCart() { ... } call: rdAddtoCart(); - Do not forget to use a universaID/customerID as the userID which you also share with other parties such as your ESP. If you are using a GSM number or an email address instead of a userID please send that info as the userID. Make sure that you share the same ID with all other parties. - You must pass the total purchase value to OM.ppr parameter which is the number of items purchased multiplied by the price of a single item. |
...
Parent Topic: Events that Trigger on Page Loads
...