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. Ensure high quality, structured data with Formo. Start tracking custom events with the Web SDK to get started. Custom events work with Wallet Intelligence and Funnels to give you a complete picture of each user’s journey.

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. This guide shows you how.

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 special properties:
These values appear in your dashboard metrics and can be used for:
  • Revenue attribution by traffic source
  • Volume tracking per user
  • Points/rewards leaderboards

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:

Best practices

Naming conventions: Use descriptive, past-tense names that describe what happened. Properties to include:
When to track:
  • Track at the moment the action completes (not when a button is clicked)
  • For async actions, track on success (and optionally on failure)

Example: Tracking a swap flow

Track multiple events throughout a user flow:

Example: Tracking DeFi feature adoption

Measure which protocol features users engage with:

Using custom events in funnels

Custom events can be funnel steps:
  1. Go to Funnels > Create Funnel
  2. Add a step with Event type: Custom
  3. Select your custom event name
  4. Optionally add property filters
Example funnel:

Next Steps

Events API Reference

Full track() API documentation

Funnels

Use custom events in conversion funnels

Charts

Query custom events with SQL

Web SDK

Complete SDK documentation