Product recommendations events

// Personyze allows you to log Interaction Events from your JavaScript.
// In the code below substitute PRODUCT_ID with value that appears in Products Catalog in the "Internal ID" column.
// The Products Catalog is available here: https://personyze.com/site/tracker/condition/index/#cat=Account settings%2FRecommendations%2FProducts%20catalog

// 1. Viewed event.
(self.personyze=self.personyze||[]).push(["Product Viewed", PRODUCT_ID]);

// 2. Added to favorites (wishlist) event.
(self.personyze=self.personyze||[]).push(["Product Liked", PRODUCT_ID]);

// 3. Removed from favorites event.
(self.personyze=self.personyze||[]).push(["Product Unliked", PRODUCT_ID]);

// 4. Added to cart event.
(self.personyze=self.personyze||[]).push(["Product Added to cart", PRODUCT_ID]);
// ... with quantity (number of items)
(self.personyze=self.personyze||[]).push(["Product Added to cart", PRODUCT_ID, 'Quantity', QUANTITY]);

// 5. Buy event for particular products.
// Note, that transaction sum will be calculated according to prices that appear in products catalog.
(self.personyze=self.personyze||[]).push(["Product Purchased", PRODUCT_ID]);
// ... with quantity (number of items)
(self.personyze=self.personyze||[]).push(["Product Purchased", PRODUCT_ID, 'Quantity', QUANTITY]);

// 5a. "Buy all" event. Convert all the products that have been Added to cart to "Purchased".
(self.personyze=self.personyze||[]).push(["Products Purchased"]);

// 6. Remove from cart particular products.
(self.personyze=self.personyze||[]).push(["Product Removed from cart", PRODUCT_ID]);
// ... remove all from cart. Convert all the products that have been Added to cart to "Viewed":
(self.personyze=self.personyze||[]).push(["Products Removed from cart"]);