Every limit below is the same on every plan. An SDK checks the ones it can before sending, so your
code hears about a crossed limit through onError with the code in the last column; a client that
calls the endpoint directly gets the same code back from it.
One event
| What | Limit | When crossed | Reported as |
|---|---|---|---|
| Event name | 1 to 255 characters | The event is not sent | event_name_empty, event_name_too_long |
| Property value | 1,024 characters | The value is cut to its first 1,024 characters and the event is kept | envelope_property_value_too_long |
| Properties per event | 256 | The first 256 by name are kept and the event is kept | envelope_properties_too_many |
| Event size | 256 KiB of JSON | The event is not sent; the endpoint refuses it alone and accepts the rest | event_too_large |
| Event age | 7 days old at most, 5 minutes ahead at most | The event is refused | timestamp_too_old, timestamp_too_far_future |
Why. An event records what a person did, so it is small: a name and a few short values a chart or a funnel reads. A long value is usually a URL with a tracking query string, and more than 256 properties is usually a whole object passed as properties, so Togo keeps the event and trims the excess. An event over 256 KiB is a document or a payload, not an event, so it is not sent at all. Send only the values you will filter or break down by. Person properties follow the same value limit (Person properties).
One request
| What | Limit | When crossed | Reported as |
|---|---|---|---|
| Request size | 5 MiB | The whole request is refused (413) |
batch_too_large |
| Events per request | 500 | The whole request is refused (400) |
invalid_batch |
| Requests per project | 6,000 a minute with a live key, 300 with a test key | Refused with 429 and Retry-After; the SDKs wait and retry |
rate_limited |
Why. The endpoint is public and its write keys sit in web pages, so the request size and the rate are what bound one client’s load. Every Togo SDK sends well below both: it batches for you.
What each SDK sends and holds
| SDK | A batch is sent at | Events waiting on the device or server |
|---|---|---|
| Browser | 50 events, about 1 MiB, or 5 seconds | 1,000 events or 1 MiB, in the site’s storage |
| iOS, Android | 50 events, about 1 MiB, or 5 seconds | 5,000 events or 8 MiB, in a file |
| Node, .NET | 100 events, 4 MiB, or 10 seconds | 10,000 events or 32 MiB, in memory |
Events wait while the device is offline or Togo cannot be reached, and are sent when it can. Past
either bound the oldest waiting events are dropped and reported as queue_full with each id, so
a long outage never fills the visitor’s storage or your server’s memory. In the browser, the batch
sent as a page closes carries at most 60,000 bytes, the most a browser lets a closing page send;
an event too large for it is sent on the visitor’s next page. The browser SDK’s own limits are in
its reference.