Add to/Remove from Favorites
Use the following javascript code when the user adds a product to Favorites / Wishlist:
<script type="text/javascript"> function rdAddtoFav(){ var vl = new Visilabs(); vl.AddParameter("OM.pf","Product Code"); vl.AddParameter("OM.pfu","1"); vl.AddParameter("OM.ppr","Price of the product"); vl.Collect(); } rdAddtoFav(); </script>
Use the following javascript code when the user removes a product from Favorites / Wishlist:
<script type="text/javascript"> function rdRemoveFromFav(){ var vl = new Visilabs(); vl.AddParameter("OM.pf","Product Code"); vl.AddParameter("OM.pfu","-1"); vl.AddParameter("OM.ppr","Price of the product"); vl.Collect(); } rdRemoveFromFav(); </script>
Parent Topic: Events Triggered with User Actions
Copyright 2020 Related Digital