Track Payment Events

Overview

Payment 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.

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

Basic Implementation

To track payment events, use the versatailor function with the event type "payment". Payment events require an email and amount parameter:

While email is required and recommended for better customer insights, you can use a dummy email (e.g., "dummy@example.com") if you prefer not to include real customer emails.

// Basic payment event
window?.versatailor("payment", {
  email: "customer@example.com",
  amnt: 2999, // $29.99 in cents
});

⚠️ Important: Always provide amounts in cents (not dollars) for accurate tracking. For example, $29.99 should be passed as 2999 and $5 would be 500.

Troubleshooting

Revenue not showing in dashboard?

  • Ensure you're using the exact event type "payment"
  • Verify the amnt parameter is a positive number
  • Check that the email parameter is provided
  • Wait a few minutes for data to appear (real-time updates may have slight delays)

Need help? Contact us for assistance.

Suggest features? We'd love your feedback