public function trackPlacedBid(Bid $bid) { $amount = $bid->getBidAmount()->getAmount(); $interest = $bid->getInterestRate(); $bidId = $bid->getId(); Mixpanel::track('Purchased an Item', array('amount' => $amount, 'type' => 'Loan Bid', 'interest' => $interest, 'id' => $bidId, 'lender invite credit' => false)); }