Overview
Revenue tracking captures financial transactions and associates them with:Transaction Data
Monetary information:
- Revenue amount
- Currency type
- Transaction ID
- Event name
Attribution Data
Traffic source context:
- Referrer source
- UTM parameters
- User session
- Geographic location
Revenue tracking requires implementing revenue events in your tracking code. All revenue data is associated with your existing analytics.
Setting Up Revenue Tracking
Prerequisites
Before tracking revenue:Basic Revenue Event
Track revenue by sending a custom event with revenue data:The event name can be any custom name you choose (e.g., ‘purchase’, ‘subscription’, ‘checkout’).
Complete Revenue Event
Include additional context:Revenue Event Properties
Required Properties
revenue
Type: NumberDescription: The monetary amountExample:
99.99Notes: Use decimal format, positive numberscurrency
Type: StringDescription: 3-letter currency codeExample:
"USD", "EUR", "GBP"Notes: ISO 4217 currency codesOptional Properties
Add custom properties for detailed analysis:- product_id: Product identifier
- product_name: Product name
- category: Product category
- quantity: Number of items
- transaction_id: Unique transaction identifier
- payment_method: Payment type used
- Any other custom properties you need
Implementation Examples
E-commerce Purchase
Track completed purchases:Subscription Revenue
Track subscription signups:Digital Downloads
Track paid content purchases:Lead Value
Track estimated value of leads:In-App Purchases
Track mobile app purchases:Revenue Reports
Analyze your revenue data:Revenue Metrics
Total Revenue
Sum of all revenue events in the selected period.
Transactions
Number of revenue events tracked.
Average Order Value
Mean revenue per transaction (Total Revenue / Transactions).
Revenue Over Time
Visualize revenue trends:- Daily, weekly, or monthly revenue
- Compare time periods
- Identify seasonal patterns
- Track growth trends
The revenue chart automatically adjusts granularity based on your selected date range.
Revenue Analysis
By Traffic Source
Understand which sources drive revenue:By Referrer
Revenue from each referrer:
- Social media platforms
- Partner websites
- Search engines
- Direct traffic
By Campaign
Revenue by marketing campaign:
- UTM campaign tracking
- Source and medium
- Campaign ROI
- Attribution analysis
By Page
See which pages generate revenue:- Landing pages that convert
- Product pages that drive sales
- Content that leads to purchases
- Entry points for customers
By Geography
Analyze revenue by location:- Country-level revenue
- Regional performance
- International market value
- Geographic expansion opportunities
By Event Type
Compare different revenue events:- Purchase vs subscription revenue
- Product category performance
- Revenue by event name
- Custom event analysis
Currency Handling
Umami tracks revenue in multiple currencies:Multi-Currency Support
Revenue is stored in the original currency. Reports display revenue grouped by currency.
Common Currency Codes
| Code | Currency |
|---|---|
| USD | US Dollar |
| EUR | Euro |
| GBP | British Pound |
| CAD | Canadian Dollar |
| AUD | Australian Dollar |
| JPY | Japanese Yen |
| CNY | Chinese Yuan |
| INR | Indian Rupee |
Revenue Attribution
Understand what drives revenue:First-Touch Attribution
Revenue credited to initial source:- Where did the customer first arrive?
- Which campaign brought them in?
- Original referrer tracking
Last-Touch Attribution
Revenue credited to final source:- What was the last touchpoint?
- Which page preceded purchase?
- Final referrer before conversion
Umami associates revenue with the session where it occurred, providing last-touch attribution by default.
E-commerce Integration
WooCommerce Example
Add to your order confirmation page:Shopify Example
Add to your thank you page:Stripe Integration
Track Stripe payments:Best Practices
Tracking Implementation
- Track revenue only once per transaction
- Include transaction IDs to prevent duplicates
- Use consistent event names across your site
- Track revenue at the confirmation step, not the attempt
- Include relevant context in event properties
Data Quality
- Validate revenue amounts before tracking
- Use correct currency codes
- Handle refunds separately (negative revenue or separate event)
- Test in development before production
- Monitor for duplicate transactions
Security Considerations
- Don’t expose sensitive payment information
- Don’t include credit card numbers or CVV
- Don’t include personal identifying information
- Track only completed, authorized transactions
- Use server-side validation when possible
Troubleshooting
Revenue not appearing in reports
Revenue not appearing in reports
Possible causes:
- Revenue events not properly implemented
- Wrong event property names
- Currency code missing or invalid
- Events firing before tracking code loads
- Check browser console for errors
- Verify event properties match requirements
- Test with known currency codes
- Ensure tracking code loads before revenue events
- Check network tab for event requests
Duplicate revenue tracking
Duplicate revenue tracking
Possible causes:
- Tracking on page reload
- Multiple confirmation steps
- User refreshing thank you page
- Track only on first page load
- Use transaction IDs to detect duplicates
- Implement client-side flags
- Track on server-side webhook instead
Incorrect revenue amounts
Incorrect revenue amounts
Possible causes:
- Currency conversion errors
- Decimal point issues
- Including tax/shipping incorrectly
- Verify amount calculation
- Use consistent decimal format
- Decide on gross vs net revenue
- Test with known amounts
Revenue Reporting Tips
- Compare revenue across different time periods
- Segment revenue by customer type or value
- Track revenue per visitor (RPV)
- Monitor conversion rate and average order value together
- Use revenue data to calculate marketing ROI
- Filter by traffic source to optimize ad spend
Privacy Considerations
Revenue tracking respects user privacy:- No personal information required
- Transaction amounts are aggregated
- User identities remain anonymous
- GDPR compliant tracking
- No third-party data sharing
Umami’s privacy-first approach means revenue data is collected without compromising user privacy.
Next Steps
Reports
Create revenue reports and analysis
Event Tracking
Learn more about custom events
Goals
Set up conversion goals
Funnels
Track revenue conversion funnels