Real-time dashboards for your customers
Creators want to see their views, sellers their sales, players their stats. You can build those pages from the events you already collect.
Serving numbers per customer
A customer-facing dashboard needs fast answers for every customer at once. That usually means rollup jobs, a cache and a warehouse table to maintain, with costs that grow with high-cardinality IDs.
Aggregations.io maintains those rollups as events arrive. Your app requests one customer's results in a single call.
c_2817liveExample filter
For a video platform, one filter on videoView events, grouped by creator and region, can measure watch time and unique viewers.
There's no limit on the number of creators in a grouping. For monthly unique viewers, roll the same filter up to a month at query time.
@.eventName == 'videoView'@.creator.id@.geo.region| Aggregation | Calculations | Field |
|---|---|---|
| Watch Time | AvgPercentile | @.durationMs |
| Viewers | CountApprox Distinct | @.userId |
Querying per customer
Save the question as a Data Endpoint with @.creator.id set to query time. Each page load passes one creator and gets back only their rows.
For options an Endpoint doesn't cover, such as a different percentile or a custom time range, use the Metrics API with the same filter.
curl -X POST https://app.aggregations.io/api/v1/data/{id} \
-H "x-api-token: $READ_KEY" \
-d '{"groupingFilters": {"@.creator.id": ["c_2817"]}}'[
{
"groupings": { "@.geo.region": "USA" },
"fields": { "views_24h": 9120, "viewers_24h": 3388, "p50_watch_ms": 74000 }
},
{
"groupings": { "@.geo.region": "EU" },
"fields": { "views_24h": 5310, "viewers_24h": 2041, "p50_watch_ms": 81500 }
}
]More in Real-Time Metrics
Questions
What is a filter?
A filter is the building block for your real-time aggregation. It defines what data matters, how you want to group your aggregations and at what interval. Learn more here
How many aggregations do I get per filter?
You can add up to 10 aggregations per filter. Each aggregation can contain 1-6 calculations, so you don't need to worry about separate aggregations for Counts vs Sums etc.
From $60/month. Every feature on every plan. 14 days free.