Use the following method when the user adds a product to favourites:
HashMap<String, String> parameters= new HashMap<String, String>(); parameters.put("OM.pf","Product Code"); parameters.put("OM.pfu","1"); parameters.put("OM.ppr","Product Price"); parameters.put("OM.exVisitorID","memberID/userID"); parameters.put("OM.sys.TokenID","Token ID to use for push messages"); parameters.put("OM.sys.AppID","App ID to use for push messages"); Visilabs.CallAPI().customEvent("Add To Favorites", parameters); |
Use the following method when the user removes a product from favourites:
HashMap<String, String> parameters= new HashMap<String, String>(); parameters.put("OM.pf","Product Code"); parameters.put("OM.pfu","-1"); parameters.put("OM.ppr","Product Price"); parameters.put("OM.exVisitorID","memberID/userID"); parameters.put("OM.sys.TokenID","Token ID to use for push messages"); parameters.put("OM.sys.AppID","App ID to use for push messages"); Visilabs.CallAPI().customEvent("Add To Favorites", parameters); |
TokenID and AppID parameters are optional. If you are using Euromessage, you should send it. |
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. |
Do not use thousands separator when sending numbers. Wrong: 123.456,78 Correct: 123456,78 |
Do not forget to include the full hierarchy starting from top category to lowest level sub-category when sending category codes and names. Example: computers|portable computers|laptops. Use pipe "|" to separate different levels of categories. |
Parent Topic: Android - MobileTagging