Forwarding
A forwarder sends a copy of each valid event to a destination outside EdgeKit, such as your marketing platform. Your event archive keeps every event whatever a forwarder does: a forwarder only ever sends a copy.
The forwarders
Section titled “The forwarders”| Forwarder | Receives |
|---|---|
| Braze | Events that carry a user_id, as Braze custom events |
| OTLP | Every event, as one OpenTelemetry log record, sent over OTLP/HTTP as JSON |
| Statsig | Every event, as a Statsig custom event |
“Every event” means every valid event, from users and anonymous devices alike.
EdgeKit Personalization is not a forwarder. It is part of EdgeKit, and receives the events your Personalization event map names. See What EdgeKit sends to Personalization.
What every forwarder shares
Section titled “What every forwarder shares”- Valid events only. A forwarder receives an event once it is in your archive. Bad rows are never forwarded.
- Every site. A forwarder has no site filter: it receives the events of all your sites, and events filed under
an unknown site id or
_unresolvedtoo. - No consent check. A forwarder sends what it receives, under either consent basis. Holding events until a user agrees happens in the tracker, before the collector. See Record consent.
- Events, not profiles. A forwarder sends events. It never sends a user’s profile, details or trait answers.
What each one receives
Section titled “What each one receives”One Braze custom event per event that carries a user_id, written to the user whose external_id is that
user_id. Events from anonymous devices are not sent. The event’s time is when the collector received it.
| Event | Braze event name | Properties |
|---|---|---|
| A self-describing event | The schema’s name, such as article_read |
The event’s data |
| A structured event | Its action, else struct |
Its category, action, label, property and value |
| Any other, such as a page view | The event type, such as page_view |
None |
A Braze event carries no site id, no event id and no entities. Inside your Braze workspace you cannot tell which
site an event came from, and a resent event cannot be told from the first. Event names and property keys are cut to
255 characters, and ., $ and spaces in them are written as _.
One log record per event, with every field of the event as an attribute, posted to <your endpoint>/v1/logs with
the headers EdgeKit holds for your organization.
Statsig
Section titled “Statsig”One Statsig custom event per event, named as for Braze. In the name, ", \, [, ], {`, `}, <, >, #,
=, ;, &, $, %, | and line breaks are written as _, and the name is cut to 64 characters. Each event is
counted against:
userID: the event’suser_id, when it has one.stableID: the device id, the same one decide sends Statsig, so forwarded events join the arms EdgeKit assigns. An event tracked anonymously has no device id, so itsstableIDis the id of its page view, and each page view counts as one Statsig user.
An event with neither is not sent. The event’s metadata holds its own data first, then its site id, event id, session, page, referrer, campaign, device and scroll fields, as text, up to Statsig’s limit of 4,096 characters. A field that would pass the limit is left out. The event carries the user agent and country, never the IP address, and its time is when the collector received it.
Delivery and failures
Section titled “Delivery and failures”Events are sent in batches. A forwarder waits up to 5 seconds to fill one:
| Forwarder | Events per batch |
|---|---|
| Braze | 50 |
| OTLP | 100 |
| Statsig | 100 |
- A temporary failure is retried. A timeout, a destination that cannot be reached,
429or any5xxsends the batch again, up to 3 more times. After that the batch is dropped. - A permanent refusal is not retried. Any other
4xx, such as400for a property the destination will not take or401for a wrong key, would fail the same way every time, so the batch is dropped at once. - A retry can duplicate. A batch that timed out may have been received, and is sent again anyway. Braze has no way to drop the second copy.
- Nothing is resent from the archive. An event a forwarder failed to deliver stays in your archive, and in your warehouse if you have one, and is never forwarded again.
Erased users
Section titled “Erased users”Erasing a user changes nothing that OTLP or Statsig already received. No forwarder checks whether a user was erased,
so an event that still carries an erased user’s user_id, for example from a browser that kept it, is forwarded
like any other. Personalization is different: erasing a user deletes them from your Personalization database, and a
later event under their id creates them there again. See
What EdgeKit sends to Personalization.
Braze keeps what it received, unless a Braze profile setting is deployed: a profile key saved, even the default, or user attributes set up. Then erasing a user deletes the Braze profile EdgeKit writes to, and deletes it again five minutes later, whether or not any attribute is pushed. As with Personalization, a later event under the same id creates the profile again.
A profile field marked no forwarder concerns profile data, which no event forwarder sends. See the Profile FAQ.
Set up a forwarder
Section titled “Set up a forwarder”The Braze forwarder is yours to turn on: save your Braze REST endpoint and a REST API key that can call
/users/track on the Braze tab of Delivery › Configuration › ESP. It is the key publications send
with, so saving it for publications turns forwarding on too. See Braze.
EdgeKit sets up the other forwarders for your organization. There is no console screen for them. Give EdgeKit what the destination needs, on its integration page:
- OTLP: the endpoint, and any headers it needs, such as an ingestion key.
- Statsig: a server secret key from your Statsig project. Forwarding is its own request: the key you give EdgeKit for experiments never turns it on.
A forwarder is on once its whole configuration is saved. Half of one, such as a Braze endpoint with no key, is off. Turning a forwarder on or off takes effect when your collector is next deployed. Saving the Braze key deploys it for you, a few minutes later.