Imagine you are a Tracking API company (such as Segment.com). For the same events received, the result provided by the aggregation types proposed by Lago is completely different. This result is used to charge your customers.Documentation Index
Fetch the complete documentation index at: https://docs.getlago.com/llms.txt
Use this file to discover all available pages before exploring further.
Example of events received
You decided to charge theTracked Pages. This is your Billable metric.
Here are the 2 events sent by your backend to Lago, based on the consumption of
a customer:
Event received n°1
Event received n°2
Differences between the aggregation types
| Aggregation | Code | Units to be charged |
|---|---|---|
| COUNT | COUNT(tracked_pages) | 2 |
| SUM | SUM(tracked_pages.properties.pageviews) | 30 |
| MAX | MAX(tracked_pages.properties.pageviews) | 20 |
| COUNT UNIQUE | UNIQUE_COUNT(tracked_pages.properties.tracked_user_id) | 1 |
Tracked Pages, the result that is going to be charged to your customer is
completely different. Make sure to choose the right aggregation type for all
your Billable metrics. If you need help, don’t hesitate to reach out to the Lago
Team!