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.
-
Open Settings → General and confirm Revenue currency. The three-letter currency is permanent for the project.
-
Attach
revenueas the third argument tosupermetry.track().window.supermetry.track("Purchase",{ plan: "pro" },{ revenue: { amount: "49.90", currency: "USD" } },); -
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.