The function that drills in each order and associates the types based on the order history
1  | connectOrderMapping(list.of.orders, order.mapping)
 | 
list.of.orders | 
 - a single list of orders  | 
order.mapping | 
 - a single list of items per order  | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.