Skip to main content

Overview

The Formo SDK offers an easy-to-use event collection library that allows you to track custom events in your crypto app. See the Web SDK docs to get started.

How to track custom events

While Formo autocaptures page views, wallet connects, and transactions, custom events let you track specific actions that matter to your app.

When to use custom events

Track actions that aren’t captured automatically:

Step 1: Import the Formo SDK

Step 2: Track a custom event

Use the track function with an event name and optional properties:
Event parameters:
  • Event name (required): Descriptive name for the action
  • Properties (optional): Key-value pairs with additional context

Step 3: Track with volume, revenue, or points

For events with monetary value, use the reserved volume, revenue, and points properties:
See Tracking volume, revenue, points for the full field reference, including currency (defaults to USD). These values power revenue attribution, volume tracking, and points/rewards leaderboards in your dashboard.

Step 4: View custom events

After tracking events:
  1. Go to Activity in the Formo Dashboard
  2. Filter by your custom event name
  3. See all event occurrences
Custom events also appear in:

Examples

Tracking a swap flow

Track multiple events throughout a user flow:

Tracking DeFi feature adoption

Measure which features users engage with: