A purchase is an event that tracks when a user has gone through the checkout process and paid for a set of products. The transaction_id should be whatever you use to identify the purchase in your system. The item_id in the items array should be the SKU of the product. The price should be the final price of the product, after any taxes, discounts, etc have been applied.

Depict will automatically calculate what percentage of the purchases were made due to clicking on Depict product links, so you should send events for all purchases to Depict. In other words, even purchase events not coming from Depict.

dpq("purchase", {
    transaction_id: "YOUR_TRANSACTION_ID",
    items: [{ item_id: "white-socks-xl", price: 89.9, quantity: 12 }],
    currency: "SEK",