For commerce-specific events, we provide this function for tracking purchases. This should be called on the success page after the purchase is completed.
var shoppingCartDataFields = {
"campaignId": "1234",
"templateId": "1234"
};
_btn.trackPurchase(totalPurchaseAmount, shoppingCartItems, shoppingCartDataFields);