track_charge()
Intermediatetrack_charge() is a method, in the style of some tools, that records a purchase amount on the user's profile so each user's monetary value accumulates.
This call is an attempt to attach money to a user at the profile level; instead of just counting the purchase event, you sum the amount onto the user so you can later segment users by total spend and move toward customer lifetime value. But the same revenue-tracking traps apply here plus one more: because the sum is held on the profile, cancellations and refunds are hard to subtract from it and the number drifts from financial reality over time. For that reason many teams prefer to send the amount as a property on the purchase event and compute each user's total value from those events at report time, which is both auditable and stays consistent with corrections. The fundamental point is that no analytics call makes a revenue number authoritative; financial validity comes from the payment system.