Traces
A trace records, step by step, what Zeotap did with the events you send while it is running: how ingest received and enriched each one, which forwarding rules matched or skipped it and why, what each destination was sent and what it answered, and what the realtime plane made of it.
Use a trace when you need to answer “I sent this event — what happened to it?” without guessing from counters. Typical moments:
- You are tagging a new site or app and want to see each event arrive and reach its destinations.
- A destination asks about an event, and you want to show exactly where it went: filtered, held for consent, or delivered and answered by the partner.
- You expect a realtime audience to react to an event, and you want to see the event being tracked.
A trace is opt-in. It records the events that carry its trace ID; every other event flows exactly as before.
Prerequisites
- The
events.debugpermission to start, read and stop traces. Owner, Admin and Member hold it by default. - The
pii.revealpermission to see masked personal data (Owner and Admin only). See Personal data. - An event source sending events.
Start a trace
- Navigate to Streams > Traces.
- Click Start trace.
- Fill in the settings and click Start trace.
| Field | Default | Limits | Description |
|---|---|---|---|
| Label | — | 200 characters | What you are testing, e.g. “Checkout on staging” |
| Duration (hours) | 24 | 1–72 | The trace stops accepting events when it expires |
| Event cap | 500 | 1–2,000 | The trace stops accepting events after this many |
| Traced identities | — | Up to 10 | People to follow through batch syncs: a field (a column of the synced model, or primary_key) and a value. See Batch syncs |
A workspace can run 20 active traces at once. Stop one to start another.
The trace opens on its own page with its ID, a countdown, and the ways to send events into it. The ID looks like TR7F3K9QABXY: TR followed by ten letters and digits. IDs are case-insensitive and skip the letters I, L, O and U, so they survive being read aloud or typed from a screenshot.
A trace’s status is one of:
| Status | Meaning |
|---|---|
| Active | Accepting events |
| Stopped | Someone clicked Stop trace |
| Expired | Its duration ran out |
| Event cap reached | It accepted its last event |
An active trace accepts events. Steps for the events it accepted keep arriving after it stops, so the log completes on its own.
Share link copies a link to the trace for anyone in the workspace with events.debug. Export JSON downloads the trace and its steps — masked, unless you have revealed them.
Send events into a trace
Any one of these puts an event into a trace. The trace page shows each of them pre-filled with the trace’s ID.
| Channel | How |
|---|---|
| Browser SDK | Call zeotap.trace.join("TR7F3K9QABXY") |
| Link to your site | Open any page of your site with ?ss_trace_id=TR7F3K9QABXY |
| Bookmarklet | Drag Join from the trace page to your bookmarks bar, then click it on any page running the browser SDK |
| iOS, Android and React Native SDKs | Scan the trace page’s QR code to open your app on a deep link carrying the trace, or call Zeotap.joinTrace("TR7F3K9QABXY") |
| HTTP header | X-SS-Trace-Id: TR7F3K9QABXY on any ingest request |
| Query parameter | ?ss_trace_id=TR7F3K9QABXY on any ingest endpoint |
| Payload | "context": { "trace": { "id": "TR7F3K9QABXY" } } in the event itself |
| Console test event | Pick the trace in the event debugger’s Trace selector (the trace page’s Open the event debugger button preselects it), or put the id in the payload form. Test events go through event ingest with the source’s write key, exactly like a real event |
A payload claim wins over a header or query parameter, so one batch request can carry events for different traces.
Browser SDK
zeotap.trace.join("TR7F3K9QABXY"); // every event from this tab is now traced
zeotap.trace.current(); // "TR7F3K9QABXY"
zeotap.trace.leave(); // stop tracing this tabThe SDK keeps the joined trace for the rest of the browser tab, across page loads, and clears it when the tab closes, so the trace stays with your own tab.
The easiest way to trace a website is Open my site in this trace on the trace page. Enter your site’s address and open the link it builds. The SDK picks up ss_trace_id from the page address, joins the trace, and traces every page you visit in that tab. It works in any browser, with nothing to install.
If your site is easier to reach by clicking around than by typing its address, use the bookmarklets on the trace page instead. Drag Join to your bookmarks bar and click it on any page of a site that runs the SDK: the page reloads inside the trace. Leave trace takes the tab out of it again.
The SDK puts the ID in the event payload, so it also reaches events sent as the page unloads, which travel in a request without custom headers and are often the events you most want to see.
Mobile SDKs
The iOS, Android and React Native SDKs join a trace the same way, and stamp it on every event they build after that.
Zeotap.joinTrace("TR7F3K9QABXY") // iOS; returns true when it joins a trace ID
Zeotap.traceId // "TR7F3K9QABXY"
Zeotap.leaveTrace()Zeotap.joinTrace("TR7F3K9QABXY") // Androidawait Zeotap.joinTrace("TR7F3K9QABXY"); // React Native; getIdentity() also returns traceIdThe easiest way is the QR code on the trace page. Under Open my app in this trace, enter a deep link your app already opens (for example myapp://home) and scan the code with the test device. To make that work, pass incoming links to the SDK once:
// iOS: in your scene delegate or SwiftUI .onOpenURL
if Zeotap.handleTraceURL(url) { return }// Android: in the activity that receives the deep link
intent?.data?.let { if (Zeotap.handleTraceUrl(it.toString())) return }// React Native
Linking.getInitialURL().then(url => url && Zeotap.handleTraceUrl(url));
Linking.addEventListener("url", ({ url }) => Zeotap.handleTraceUrl(url));handleTraceURL returns true for trace links and false for everything else, so you can pass every link to it and route the rest yourself. Tick Start as a new visitor to add ss_trace_new_visitor=1: the SDK then resets its identity before joining, as reset() does, so the trace starts from a first visit. The page also shows a link with ss_trace_leave=1 that takes the app out of the trace.
The mobile SDKs keep the trace in memory, so closing the app ends it and the trace stays on your test device.
Server-side and API
curl -X POST "$EVENTS_BASE_URL/v1/events" \
-H "X-Write-Key: YOUR_WRITE_KEY" \
-H "X-SS-Trace-Id: TR7F3K9QABXY" \
-H "Content-Type: application/json" \
-d '{
"type": "track",
"event": "Order Completed",
"userId": "user-123",
"properties": { "revenue": 99.5 }
}'Each event in the trace log has a Copy as curl action that replays it into the same trace.
How ingest checks a trace ID
Ingest checks every trace ID it receives: the trace must exist in this workspace, be active and unexpired, and be under its event cap. An event whose ID passes is traced. A trace-shaped ID that does not pass is removed, and the event is processed normally, untraced. A context.trace.id in any other format, such as an OpenTelemetry trace ID, belongs to your own tracing: it is kept exactly as sent, and the event is processed untraced. Events are always accepted whatever their trace ID, and every step downstream sees an event in a trace it really belongs to.
Read the trace log
Steps appear on the trace page within a few seconds while the trace is active. The log is grouped by person (the event’s user ID, or its anonymous ID), then by event, then lists each event’s steps in the order they happened. Each person and event shows the status of its worst step, so problems stand out.
Use the filters to narrow the log by stage or status, search summaries and kinds, or show Only problems (warnings, errors, blocked and skipped steps). Click a step to open its detail: the evidence behind it, such as the payload, a before and after, or a request and response.
Stages
| Stage | What it covers |
|---|---|
| Trace | The trace itself: started, stopped, event cap reached |
| Ingest | Receiving the event: identity, enrichment, contracts, sessions, publishing |
| Forwarding | Every forwarding rule on the event’s source, and each delivery |
| Warehouse | Staging the event for the events warehouse |
| Realtime | Tracking the event for realtime audiences |
| Realtime sync | Audience entries and exits, and their delivery |
Step statuses
| Status | Meaning |
|---|---|
| OK | The step did what it was meant to |
| Info | Context, with no effect on delivery |
| Warning | Something is wrong, but the event went on, e.g. a contract violation in warn mode, or an attempt that will be retried |
| Error | The step failed, e.g. the destination refused the request |
| Blocked | The event was deliberately stopped, e.g. a contract rejected it or consent was missing |
| Skipped | The step did not apply to this event, and the summary says why |
Step kinds
Ingest
| Kind | Status | What it records |
|---|---|---|
event.received | OK | The raw payload, the source and how it was received |
identity.resolved | Info | The user ID and anonymous ID, including a first-party cookie override |
enrichment.applied | OK | Every field the platform added, with location before and after |
contract.violation | Warning | Each violation: field, expected type, received type |
contract.blocked | Blocked | A contract in reject mode refused the event |
schema.pending | Skipped | The source is in schema review; the event is not delivered |
session.touched | Info | The session the event started or continued |
event.published | OK | The event entered the event stream |
event.forwarded_app | OK | The event was routed to a native app instead |
event.failed | Error | The event could not be published |
Forwarding
| Kind | Status | What it records |
|---|---|---|
rule.matched | OK | A forwarding rule selected the event |
rule.skipped | Skipped | A rule did not take the event: its event filter did not match (and which condition failed), it was over its rate limit, or the workspace has no rule for this source |
consent.blocked | Blocked | The rule requires consent categories the event did not grant, and which ones were missing |
enrichment.lookup | Varies | A Store enrichment lookup and its result: found, missed, failed, or the event dropped on a miss |
transform.applied | OK / Skipped | A transformation or field mapping, before and after |
transform.failed | Error / Warning | The transformation or field mapping failed |
delivery.queued | Info | The event joined a batch for a destination that sends in batches |
delivery.retry | Warning | An attempt failed and was retried |
delivery.sent | OK / Error | The delivery’s result, with the request and the destination’s response |
warehouse.staged | Info | The event was staged for the events warehouse |
Realtime and realtime syncs
| Kind | Status | What it records |
|---|---|---|
realtime.undeclared | Info | No realtime event is declared for this event type on this source, so realtime ignores it |
realtime.dropped | Skipped | The event matched a declaration but could not be tracked, and why |
realtime.bound | OK | The identity and event time were resolved through the declaration |
realtime.identity_linked | OK | An anonymous visitor was linked to a user |
realtime.hits_recorded | OK / Skipped | Which audience conditions the event counted toward |
realtime.reeval_queued | OK / Skipped | Which audiences will be re-evaluated for this person |
audience.evaluated | OK / Skipped | The verdict for one audience, and what each realtime sync concluded from it. Skipped when the verdict is held because evidence it needs is missing |
audience.entered / audience.exited | OK | The person entered or left an audience |
sync.suppressed | Skipped | A transition that is not delivered, and why |
sync.awaiting_identity | Skipped | The destination needs an identifier the person does not have yet |
sync.delivered | OK / Error | The realtime sync’s delivery, with its request and response |
New kinds may appear as more of the platform is traced. The log shows any kind it does not recognise with its summary and detail.
Find where an event stopped
The answer is usually a Skipped or Blocked step on the event, and its summary names the next thing to check:
- A rule was skipped. Its summary names the condition the rule filters on, such as the event name or type. A step also lists the rules that belong to other event sources, which apply to their own sources’ events.
- Consent was missing. A
consent.blockedstep lists the categories the rule requires and the event has yet to grant. See Consent Management. - A contract rejected it. A
contract.blockedstep lists each violation to fix. The event stops at ingest, so the contract step is the last one. - Realtime passed it by.
realtime.undeclaredmeans this type has no realtime event declared on this source; declare one to track it.realtime.droppedmeans one is declared and the event needs a fix before it can be tracked. The reasons are:
| Reason | Meaning |
|---|---|
timestamp_absent | The declared timestamp field is missing |
timestamp_unparseable | The declared timestamp is not a readable time |
timestamp_late | The event time is too far in the past |
timestamp_eager | The event time is in the future |
identity_absent | Neither declared identity field is present |
- The destination refused it. A
delivery.sentstep with status Error carries the request and the destination’s response. Adelivery.retrystep before it shows each attempt that failed.
Personal data
Trace steps hold real payloads, so personal data in them is masked by default and reads as ***REDACTED***. A value is treated as personal data when:
- its field is marked redacted, sync only or blocked on any model in the workspace, matched by column name or alias, or
- its field name looks like personal data (for example
email,phoneoraddress), or - its value looks like personal data (for example an email address or phone number inside any text).
This is the same classification PII masking uses for models. Masking is applied every time the trace is read, not when it is recorded. A field you mark sensitive on a model is masked in existing traces straight away. Each step lists what was masked and why.
To see masked values, click Reveal PII and confirm. This needs the pii.reveal permission, which only Owner and Admin hold by default. Every unmasked read is recorded in the workspace audit log under your name. Nothing is ever revealed without that confirmation. Fields marked blocked, and names such as ssn or credit_card, stay hidden as ***BLOCKED*** even then.
Members run traces and see exactly what happened to each event, with the personal data in it masked.
Retention and limits
| Limit | Value |
|---|---|
| Active traces per workspace | 20 |
| Duration | 1–72 hours (default 24) |
| Events per trace | 1–2,000 (default 500) |
| Detail per step | 64 KiB; larger evidence is truncated and flagged |
| Request or response body per exchange | 16 KiB |
| Retention | 7 days, after which a finished trace and its steps are deleted |
Recording steps never slows an event down or changes how it is processed. A traced event is batched, rate limited and retried exactly like an untraced one. Events always come first: if the platform is too busy to record a step, the event carries on and the trace page shows how many steps it set aside.
The realtime drop ledger
A trace records the events you put in it. To look back after the fact at what realtime did, without a trace, use the realtime drop ledger. It counts every event that matched a realtime event declaration and needs a fix before it can be tracked. Counts are hourly, per event source, realtime event and reason, each with one sample message ID you can look up in the live stream or the events warehouse. It is kept for 35 days.
The ledger is available through the API and needs the realtime_events.read permission:
curl "$API_BASE_URL/api/v1/workspaces/$WORKSPACE_ID/realtime/drop-metrics?hours=24" \
-H "Authorization: Bearer $TOKEN"[
{
"write_key_id": "c0a8...",
"realtime_event_id": "5f1e...",
"reason": "timestamp_late",
"hour_bucket": "2026-09-30T14:00:00Z",
"drop_count": 312,
"sample_message_id": "3f2b9c1e-..."
}
]hours is 1–840 (default 24). The ledger counts events of declared types, which keeps it focused on a busy source: the types you track.
API
| Method | Path | Description |
|---|---|---|
GET | /api/v1/workspaces/{id}/traces | List traces, newest first |
POST | /api/v1/workspaces/{id}/traces | Start a trace: label, duration_hours, event_cap, identities |
GET | /api/v1/workspaces/{id}/traces/{traceId} | Read one trace |
POST | /api/v1/workspaces/{id}/traces/{traceId}/stop | Stop a trace |
GET | /api/v1/workspaces/{id}/traces/{traceId}/steps | Read its steps, always masked. Page with after_id, poll with since |
POST | /api/v1/workspaces/{id}/traces/{traceId}/reveal | Read its steps unmasked (pii.reveal; audited) |
Zeotap Agent can read traces too: ask it why an event did not reach a destination, and it reads the trace’s steps. It sees personal data masked, and revealing it stays with people who hold pii.reveal.
Batch syncs
While a trace with traced identities is live, every run of a sync or audience sync in the workspace looks for those people in what it is about to send, with one small query, and records for each:
| Step | Meaning |
|---|---|
record.planned | What the run will do with the record: add, update or delete — or that it was unchanged since the last run, or not in the model’s output at all |
record.sent | The mapped payload as sent, the batch it went in, that batch’s request and response (credentials removed) and, for Meta custom audiences and Google Customer Match, the partner’s receipt |
record.failed | The partner’s error for the row, a batch error, or the row being dropped by a transform |
record.file | For file destinations (GCS, S3, SFTP, Azure Blob): the file the record was written to |
Record payloads are masked by the synced model’s own column sensitivity, plus auto-classification.
Send traced records now (on the sync and audience sync pages) runs the sync for the traced people only, as upserts. It sends real data to the destination, asks for confirmation, and is recorded in the audit log. The next scheduled run sends exactly what it would have. It is offered on syncs that add and update records; for snapshot-mode syncs and destinations that replace the whole list, follow the next scheduled run in the trace.
Before you send, know what a traced send does at the destination:
- Records go out as upserts (adds). A destination that updates by key simply receives the record again. A destination that appends — an insert-mode table, a file drop, an event-style API — gets a duplicate of the record, and the next scheduled run may send it again as well.
- Frequency caps count it. A traced send is a real send, so it uses up the person’s frequency-cap allowance just like a scheduled run.
- Alerts stay with scheduled runs. A traced send’s result shows on the run and in the trace, and sync alerts keep following your scheduled runs.
Every run also keeps a record of its own, whether or not a trace is live. Open a run from the sync’s run list to see it:
- Partner receipts: what the destination said it received for each upload, with the job or session it opened, for destinations that report it (such as Meta custom audiences and Google Customer Match).
- Files written: for file destinations, each file with its path, rows and checksum.
- Failure samples: up to five rows the destination refused, with the payload that was sent and its answer. Personal data is masked;
pii.revealholders can reveal it, and each reveal is audited. Samples are kept for seven days. - Failed and suppressed rows: every row the run held back or the destination refused, from the record ledger.
Receipts and file lists are kept for 90 days by default. The delivery log is kept for 90 days on every warehouse.
Journeys and store feeds
Journey sends and store feed runs record traced identities the same way batch syncs do:
| Step | Meaning |
|---|---|
record.sent | The record went out from a journey’s send tile, or a store feed wrote it, with the mapped payload, the batch, and that batch’s request and response |
record.failed | The destination refused the record, or its batch failed |
sync.suppressed | A journey’s frequency cap held the person back from this send |
A journey step names the journey, the tile and the destination. A journey sends the members who are at a send tile when it runs. To see where a traced person is, including a time delay or hold-until tile they are waiting at, open the journey’s Member log, or use Trace a person.
Loaders
While a trace with traced identities is live, every loader run in the workspace records what it did with those people’s rows:
| Step | Meaning |
|---|---|
record.loaded | The row was loaded: the landing table, the file and line it came from (for file loaders), and the row as it landed |
record.rejected | The loader refused a row that mentions the person: why, the file and line, and the raw line |
A loaded row is found with one small query per stream over the rows that run landed, matched on columns named like the traced field (for example a traced email matches an email column). A refused row is kept as raw text, so it is matched when that text contains the traced value, ignoring case. Refused rows are searched for values of three characters or more. Both are masked like every other step.
Good to know
- Console test events come from the platform. A test event goes through event ingest like any other, so contracts (including blocking), sessions and enrichment apply. It is sent by the platform, so browser details such as a first-party cookie and the edge location come from events your site sends; use Open my site in this trace to see those.
- Batch errors are matched to their event. For destinations that send events in batches, a per-row error is tied to its event when the error names a value that event’s row carries. When an error names a value several rows share, every traced event in the batch shows the batch’s result.
- Dead-letter steps come with a dead-letter topic. When event forwarding is set up with one, an event whose processing still fails on its last attempt gets a
delivery.dead_letterstep. Otherwise the event is retried until it succeeds or expires.
Next steps
- Trace a person: everything the platform did with one person, including the trace steps recorded for them
- Debugging: the live event stream and test events
- Forwarding: forwarding rules, filters and the delivery log
- Consent Management: consent categories on events and rules
- Realtime Events: declaring which events realtime tracks