Docs/Revenue/Track revenue events

Track Revenue Events

Overview

Revenue events allow you to track revenue-generating activities in your application. With VersaTailor's revenue analytics, you can monitor total revenue, conversion rates, revenue per visitor, and revenue attribution across different traffic sources, locations, and devices.

All payment events require an email address for customer identification and attribution. This ensures accurate tracking and enables advanced analytics features like customer journey mapping and revenue attribution.

💡 Note: Payment events automatically enable revenue analytics in your dashboard, showing revenue metrics alongside your standard analytics data.

Payment Event Parameters

Payment events support comprehensive e-commerce tracking with the following parameters:

Complete Payment Event

window?.versatailor("payment", {
  email: "customer@example.com",     // Required - Customer email
  amnt: 2999,                       // Amount in cents ($29.99)
  currency: "USD",                  // Currency code (default: USD)
  orderId: "order_12345",           // Order identifier
  productId: "prod_abc123",         // Product identifier  
  category: "subscription"          // Product category
});

Parameter Details

Required Parameters

  • email: Customer email address for identification and attribution

Revenue Parameters

  • amnt: Payment amount in cents (e.g., 2999 for $29.99)
  • currency: Currency code - supports USD, EUR, GBP, CAD, AUD, JPY (default: USD)

E-commerce Parameters

  • orderId: Unique order identifier for transaction tracking
  • productId: Product identifier for inventory and sales analysis
  • category: Product category for segmentation and reporting

You can get started with revenue tracking using either Server-Side Tracking (Recommended) or Client-Side Tracking (Quick).

Need help? Contact us for assistance.

Suggest features? We'd love your feedback