When are commissions tracked? What about unpaid orders?

Order commissions are tracked when they are paid. 

We use the order-paid Shopify webhook to track commissions.