Browse docs

Jump to core topics without leaving the page.

Revenue Tracking

Capture revenue events to understand growth, conversion quality, and customer value.

Revenue tracking connects product behavior to business outcomes. Use it to measure sales performance, subscription growth, and conversion quality across cohorts and channels.

Track a Purchase

Send a purchase event with revenue and order-level details:

fa.track('purchase_completed', {
  revenue: 99.99,
  currency: 'USD',
  orderId: 'order_123',
  products: [
    { id: 'prod_1', name: 'Pro Plan', price: 99.99 }
  ]
});

Track a Subscription

Include plan details and billing interval for subscription revenue:

fa.track('subscription_started', {
  revenue: 29.99,
  currency: 'USD',
  plan: 'monthly_pro',
  interval: 'month',
  subscriptionId: 'sub_123'
});

Recommended Properties

Standardize these fields for reliable reporting:

  • revenue - The total amount (number)
  • currency - ISO currency code (e.g., USD, EUR)
  • orderId - Unique order identifier
  • products - Array of purchased items

Full E-commerce Funnel

Track the end-to-end funnel to measure drop-offs and recovery:

// Product viewed
fa.track('product_viewed', {
  productId: 'prod_1',
  productName: 'Pro Plan',
  price: 99.99,
  category: 'subscriptions'
});

// Added to cart
fa.track('added_to_cart', {
  productId: 'prod_1',
  quantity: 1,
  price: 99.99
});

// Checkout started
fa.track('checkout_started', {
  cartTotal: 99.99,
  itemCount: 1
});

// Purchase completed
fa.track('purchase_completed', {
  revenue: 99.99,
  currency: 'USD',
  orderId: 'order_123'
});

Dashboard Insights

Revenue events power reporting across the platform:

  • Total revenue over time
  • Average order value
  • Revenue by product/plan
  • Conversion rates
  • Customer lifetime value