Docs/REVENUE/Track revenue events

Track Revenue Events

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.

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

Implementation Options

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

Best Practices

Payment Event Guidelines

Follow these guidelines for consistent payment tracking:

  • Email: Always required for customer identification
  • Amount: Use cents (e.g., 2999 for $29.99) for precision
  • Currency: Supports USD, EUR, GBP, CAD, AUD, JPY
  • Order ID: Use unique identifiers for each transaction
  • Product ID: Include for inventory and sales analysis

Complete Payment Event Example

// Complete payment event example
window?.versatailor("payment", {
  email: "customer@example.com",
  amnt: 4999, // $49.99 in cents
  currency: "USD",
  orderId: "ORD-2024-001234",
  productId: "PROD-PREMIUM-001",
  category: "software",
});

Revenue Analytics

Once you start tracking payment events, VersaTailor automatically enables revenue analytics in your dashboard, showing:

  • Total Revenue: Sum of all payment events
  • Revenue per Visitor: Average revenue per unique visitor
  • Conversion Rate: Percentage of visitors who make a purchase
  • Revenue Attribution: Revenue by traffic source, location, device, etc.
  • Revenue Trends: Revenue over time with detailed breakdowns

Troubleshooting

Revenue Not Appearing

If revenue events don't appear in your dashboard:

  1. Check that the payment event is being triggered correctly
  2. Verify the email parameter is included
  3. Ensure the amount is in cents (not dollars)
  4. Wait a few minutes for data to appear
  5. Contact support if the issue persists

Common Issues

  • Missing email: Payment events require an email address
  • Wrong amount format: Use cents (2999) not dollars (29.99)
  • Script not loaded: Ensure VersaTailor script is loaded before tracking
  • Ad blockers: Some ad blockers may block tracking

Next Steps

Now that you understand revenue tracking:

Need help? Contact us for assistance.

Suggest features? We'd love your feedback