Skip to content

Track revenue

Attach a positive amount to a custom event using the project's permanent currency.

Send revenue with a custom event after configuring the project’s currency.

  1. Open Settings → General and confirm Revenue currency. The three-letter currency is permanent for the project.

  2. Attach revenue as the third argument to supermetry.track().

    window.supermetry.track(
    "Purchase",
    { plan: "pro" },
    { revenue: { amount: "49.90", currency: "USD" } },
    );
  3. Complete a test purchase, then open Revenue.

The amount must be positive and may have up to six decimal places. You may omit currency to use the project currency; when supplied, it must exactly match the configured three-letter currency code. Supermetry does not convert currencies.

What you should see: the Purchase event contributes 49.90 in the project’s currency to the Revenue report.