Get started with tracking custom events.
Purchase Completed
event, you may want to include the product ids of the purchased products.
Swap Reviewed
and Order Submitted
. A standard of [Noun] + [Past-Tense Verb]
ensures all your events are consistent.Message Sent
mean that the user sent a message or that you sent a message to the user? If all your events are named in a way that reflects the user’s perspective, the meaning is clear immediately.track
call accepts the following fields:
Field | Type | Required | Description |
---|---|---|---|
event | String | ✓ | Name of the user action |
properties | Object | Includes the properties associated with the event. For more information, check the Properties section below. |
volume
, revenue
, and points
in your events.
Once tracked, they are shown on the dashboard.
Revenue tracking.
Property | Type | Description |
---|---|---|
volume | Number | The volume amount as a result of an event. For e.g., a token swap worth $20.00 would result in a volume of 20.00. |
revenue | Number | The revenue amount as a result of an event. For e.g., a transaction with a protocol fee of $5.00 would result in a revenue of 5.00. |
currency | String | The currency of the revenue as a result of the event, set in ISO 4127 format. If this is not set, Formo assumes the revenue is in USD. |
points | String | An abstract value such as points or XP associated with an event, to be used by various teams. |