Skip to Content
StreamsTraces

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.

A traced event travels from your site or server into ingest, which admits or strips the trace ID. The event and its trace ID travel on through the event stream to forwarding and to the realtime plane, then on to realtime syncs and destinations. Ingest, forwarding, realtime and realtime syncs each write steps to the trace log, which the Trace page reads.

Prerequisites

  • The events.debug permission to start, read and stop traces. Owner, Admin and Member hold it by default.
  • The pii.reveal permission to see masked personal data (Owner and Admin only). See Personal data.
  • An event source sending events.

Start a trace

  1. Navigate to Streams > Traces.
  2. Click Start trace.
  3. Fill in the settings and click Start trace.
The Start a trace dialog with the label Checkout on staging, a duration of 24 hours, an event cap of 500 and the option to add traced identities
FieldDefaultLimitsDescription
Label—200 charactersWhat you are testing, e.g. “Checkout on staging”
Duration (hours)241–72The trace stops accepting events when it expires
Event cap5001–2,000The trace stops accepting events after this many
Traced identities—Up to 10People 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:

StatusMeaning
ActiveAccepting events
StoppedSomeone clicked Stop trace
ExpiredIts duration ran out
Event cap reachedIt 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.

ChannelHow
Browser SDKCall zeotap.trace.join("TR7F3K9QABXY")
Link to your siteOpen any page of your site with ?ss_trace_id=TR7F3K9QABXY
BookmarkletDrag Join from the trace page to your bookmarks bar, then click it on any page running the browser SDK
iOS, Android and React Native SDKsScan the trace page’s QR code to open your app on a deep link carrying the trace, or call Zeotap.joinTrace("TR7F3K9QABXY")
HTTP headerX-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 eventPick 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.

The trace page's Send events into this trace panel: a site link with its QR code, Join and Leave trace bookmarklets, and a deep link for a mobile app

Browser SDK

zeotap.trace.join("TR7F3K9QABXY"); // every event from this tab is now traced zeotap.trace.current(); // "TR7F3K9QABXY" zeotap.trace.leave(); // stop tracing this tab

The 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") // Android
await Zeotap.joinTrace("TR7F3K9QABXY"); // React Native; getIdentity() also returns traceId

The 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

A trace log grouping one Order Completed event under its anonymous ID, with its ingest steps: the visitor identified, the event received, platform fields added and the event published for forwarding, the warehouse and the realtime plane

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.

A step opened from the trace log: its kind, time, message ID, person and resource, with the evidence behind it as JSON

Stages

StageWhat it covers
TraceThe trace itself: started, stopped, event cap reached
IngestReceiving the event: identity, enrichment, contracts, sessions, publishing
ForwardingEvery forwarding rule on the event’s source, and each delivery
WarehouseStaging the event for the events warehouse
RealtimeTracking the event for realtime audiences
Realtime syncAudience entries and exits, and their delivery

Step statuses

StatusMeaning
OKThe step did what it was meant to
InfoContext, with no effect on delivery
WarningSomething is wrong, but the event went on, e.g. a contract violation in warn mode, or an attempt that will be retried
ErrorThe step failed, e.g. the destination refused the request
BlockedThe event was deliberately stopped, e.g. a contract rejected it or consent was missing
SkippedThe step did not apply to this event, and the summary says why

Step kinds

Ingest

KindStatusWhat it records
event.receivedOKThe raw payload, the source and how it was received
identity.resolvedInfoThe user ID and anonymous ID, including a first-party cookie override
enrichment.appliedOKEvery field the platform added, with location before and after
contract.violationWarningEach violation: field, expected type, received type
contract.blockedBlockedA contract in reject mode refused the event
schema.pendingSkippedThe source is in schema review; the event is not delivered
session.touchedInfoThe session the event started or continued
event.publishedOKThe event entered the event stream
event.forwarded_appOKThe event was routed to a native app instead
event.failedErrorThe event could not be published

Forwarding

KindStatusWhat it records
rule.matchedOKA forwarding rule selected the event
rule.skippedSkippedA 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.blockedBlockedThe rule requires consent categories the event did not grant, and which ones were missing
enrichment.lookupVariesA Store enrichment lookup and its result: found, missed, failed, or the event dropped on a miss
transform.appliedOK / SkippedA transformation or field mapping, before and after
transform.failedError / WarningThe transformation or field mapping failed
delivery.queuedInfoThe event joined a batch for a destination that sends in batches
delivery.retryWarningAn attempt failed and was retried
delivery.sentOK / ErrorThe delivery’s result, with the request and the destination’s response
warehouse.stagedInfoThe event was staged for the events warehouse

Realtime and realtime syncs

KindStatusWhat it records
realtime.undeclaredInfoNo realtime event is declared for this event type on this source, so realtime ignores it
realtime.droppedSkippedThe event matched a declaration but could not be tracked, and why
realtime.boundOKThe identity and event time were resolved through the declaration
realtime.identity_linkedOKAn anonymous visitor was linked to a user
realtime.hits_recordedOK / SkippedWhich audience conditions the event counted toward
realtime.reeval_queuedOK / SkippedWhich audiences will be re-evaluated for this person
audience.evaluatedOK / SkippedThe 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.exitedOKThe person entered or left an audience
sync.suppressedSkippedA transition that is not delivered, and why
sync.awaiting_identitySkippedThe destination needs an identifier the person does not have yet
sync.deliveredOK / ErrorThe 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.blocked step lists the categories the rule requires and the event has yet to grant. See Consent Management.
  • A contract rejected it. A contract.blocked step lists each violation to fix. The event stops at ingest, so the contract step is the last one.
  • Realtime passed it by. realtime.undeclared means this type has no realtime event declared on this source; declare one to track it. realtime.dropped means one is declared and the event needs a fix before it can be tracked. The reasons are:
ReasonMeaning
timestamp_absentThe declared timestamp field is missing
timestamp_unparseableThe declared timestamp is not a readable time
timestamp_lateThe event time is too far in the past
timestamp_eagerThe event time is in the future
identity_absentNeither declared identity field is present
  • The destination refused it. A delivery.sent step with status Error carries the request and the destination’s response. A delivery.retry step 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, phone or address), 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

LimitValue
Active traces per workspace20
Duration1–72 hours (default 24)
Events per trace1–2,000 (default 500)
Detail per step64 KiB; larger evidence is truncated and flagged
Request or response body per exchange16 KiB
Retention7 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

MethodPathDescription
GET/api/v1/workspaces/{id}/tracesList traces, newest first
POST/api/v1/workspaces/{id}/tracesStart 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}/stopStop a trace
GET/api/v1/workspaces/{id}/traces/{traceId}/stepsRead its steps, always masked. Page with after_id, poll with since
POST/api/v1/workspaces/{id}/traces/{traceId}/revealRead 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:

StepMeaning
record.plannedWhat 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.sentThe 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.failedThe partner’s error for the row, a batch error, or the row being dropped by a transform
record.fileFor 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.reveal holders 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:

StepMeaning
record.sentThe 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.failedThe destination refused the record, or its batch failed
sync.suppressedA 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:

StepMeaning
record.loadedThe row was loaded: the landing table, the file and line it came from (for file loaders), and the row as it landed
record.rejectedThe 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_letter step. Otherwise the event is retried until it succeeds or expires.

Next steps

Last updated on