Using the following method when the user adds a product to favorites:
Code Block | ||
---|---|---|
| ||
var data = {"OM.pf" : "Product Code", "OM.pfu" : "1", "OM.ppr" : "Product Price"}; api.customEvent("Add To Favorites", data); |
Using the following when the user removes a product from favorites , use the following method:
Code Block | ||
---|---|---|
| ||
var data = {"OM.pf" : "Product Code", "OM.pfu" : "-1", "OM.ppr" : "Product Price"}; api.customEvent("Add To Favorites", data); |
Parent Page: React Native