Basic Revenue Tracking
To track revenue with a conversion, add therevenue parameter to your conversion event:
Configuring Custom Goals
Before you can track revenue with custom goals, you need to configure them in your Pagent dashboard:1. Create Goals in Tracking Section
- Navigate to the Tracking section in your Pagent dashboard
- Click “Add Goal”.
- Enter a unique label for your goal (e.g.,
purchase,subscription_monthly,lead_enterprise) - Configure any additional settings for the goal
- Save the goal configuration
2. Add Goals to Tests
After creating goals in the Tracking section, you need to add them to each test where you want to track revenue:- Open your test in the Editor
- Under the settings icon, open Manage conversion goals.
- Add your newly created goal to the test.
Important: Custom goals must be configured in the Tracking section before they can be used in tests. The label parameter in your tracking code must exactly match the goal label you configured.
Revenue Format
Important: Revenue values must be provided as integers representing cents, not dollars.- ✅ Correct:
revenue: 999(represents $9.99) - ❌ Incorrect:
revenue: 9.99(will be treated as 9 cents)
Examples
| Dollar Amount | Revenue Value |
|---|---|
| $1.00 | 100 |
| $9.99 | 999 |
| $25.50 | 2550 |
| $100.00 | 10000 |
Common Use Cases
E-commerce Purchases
Track completed purchases with their value:Subscription Signups
Track subscription revenue:Lead Generation
Track high-value leads:Service Bookings
Track appointment or service bookings:Dynamic Revenue Values
You can calculate revenue dynamically based on your application’s data:Custom Properties
You can also track custom properties alongside your revenue events to capture additional context about your conversions:properties field must be an object or array. You can include any relevant data such as:
- Product information (ID, category, name)
- User demographics
- Transaction details
- Custom business metrics
- Campaign identifiers
Best Practices
- Always use cents: Convert dollar amounts to cents before sending
- Be consistent: Use the same revenue format across all your tracking
- Track meaningful conversions: Only track revenue for actual monetary transactions
- Validate data: Ensure revenue values are positive numbers
- Test thoroughly: Verify revenue tracking in your analytics dashboard
Troubleshooting
Revenue Not Showing
- Check that you’re using integers (cents) not decimals
- Verify the conversion event is being sent correctly
- Ensure the goal is properly configured in your dashboard
Incorrect Revenue Values
- Double-check your conversion from dollars to cents
- Verify the label parameter is spelled correctly
- Test with a small value first to confirm it’s working