[feature] Batch-collect #1473
Replies: 4 comments
-
The problem is we don't know if a user will return or will trigger any events. So if we wait for a batch to send, we could lose that data. |
Beta Was this translation helpful? Give feedback.
-
I'm using the API directly, not via Google Analytics supports batching for that reason, among others: https://developers.google.com/analytics/devguides/reporting/core/v3/batching |
Beta Was this translation helpful? Give feedback.
-
I see what you mean. Yes we should support that use case for the API. |
Beta Was this translation helpful? Give feedback.
-
Any ETA on this? I would like to have such an endpoint. |
Beta Was this translation helpful? Give feedback.
-
When an app needs to send many events, it'd be desirable to have some way of batching them, instead of having to make a
POST
request for each.I'm thinking of either modifying
POST /api/collect
to also accept an array ofpageview
andevent
payloads, or creating a newPOST /api/collect/batch
endpoint.It could impose limits, like Google Analytics does: https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide#batch
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions