private void ProductAddedToShoppingCart_Execute(object sender, ProductAddedToCartEventArgs e)
        {
            var contact = ContactManagementContext.GetCurrentContact();
            var service = new RecombeeClientService();

            var skuId   = e.AddedShoppingCartItem.SKU.SKUID;
            var product = GetProductForSKU(skuId);

            service.LogProductAddition(contact.ContactGUID, product.DocumentGUID, e.AddedShoppingCartItem.CartItemUnits);
        }
        private void NewOrderCreated_Execute(object sender, NewOrderCreatedEventArgs e)
        {
            var contact    = ContactManagementContext.GetCurrentContact();
            var service    = new RecombeeClientService();
            var order      = e.NewOrder;
            var orderItems = OrderItemInfoProvider.GetOrderItems(order.OrderID);

            foreach (var orderItem in orderItems)
            {
                var product = GetProductForSKU(orderItem.OrderItemSKUID);
                service.LogProductPurchase(contact.ContactGUID, product.DocumentGUID, orderItem.OrderItemUnitCount);
            }
        }