Skip to Content
IdentityUsing Realtime Identity

Using Realtime Identity

Once realtime identity is enabled for a workspace, every event from its website, app and server sources is read for the identifiers it carries, and those identifiers are joined into one profile per person within moments of the event arriving. This page shows how to see what the graph holds, choose how each source’s events are read, find a person, correct the graph by hand, and look people up from your own systems.

An identify event from the website carries a user id, an anonymous id and an email; its mapping reads each field as an identifier; the graph links them into one profile; the profile is available in the app, by API and to your agent

The Realtime tab

Open Identity Graphs. The Realtime column shows which graphs link events as they arrive; the workspace’s main graph reads Linking · primary. Open the graph and choose the Realtime tab.

The Realtime tab's overview: profiles kept in the workspace's store, the number of people and identifiers, the stage readers are in, and each identifier with how many each person may have

The overview shows:

  • Where profiles are kept: the workspace’s identity store.
  • People, identifiers and merged profiles: how much the graph holds now.
  • Readers: the stage the workspace is in.
  • Each identifier the graph matches on: whether it belongs to a person or a device, how many each person may have, and how many the graph holds.

Pause linking stops new events from changing profiles, for example while you correct a mapping. Events keep arriving and are kept for your other features, and linking resumes from new events when you select Resume linking.

Event sources and their mappings

Every website, app and server-to-server event source in the workspace feeds the graph. A source you create later joins automatically. Each source’s events are read through its mapping: which field of the event holds which identifier.

The event sources table: the Website and Mobile app sources, each linking, with the number of mapped fields and an Edit mapping button

New sources start with the standard mapping, which reads the fields the SDKs send:

Event fieldIdentifierRead on
userIdUser IDevery event
anonymousId, context.priorAnonymousIdAnonymous IDwebsite and app events
previousIdUser IDalias events
traits.email, traits.phoneEmail, Phoneidentify events
context.identities.emailEmail (plain or already hashed)every event
context.identities.phonePhone (plain or already hashed)every event
context.identities.cellno_e164Phoneapp events
context.identities.<identifier>that identifier, when the graph matches on it, including your own custom identifiersevery event

Emails, phone numbers, names, postal codes and IP addresses are hashed before they are stored, and every value is normalised the same way wherever it comes from, so Pat@Example.com and pat@example.com are one person, as are +1 (415) 555-0100 and an already-hashed copy of the same number. Each event contributes at most ten values of one identifier.

Editing a mapping

Select Edit mapping on a source. Each row maps one event field to one of the identifiers the graph matches on; Only on limits a row to some event types, such as identify. To read an identifier the graph does not match on yet, add a rule for it on the graph’s Configuration tab first.

Before you save, paste a few of the source’s events into Try it on sample events and select Preview. The preview shows the identifiers each event yields and anything it skipped, with the reason:

The mapping editor with the Website source's fields, a sample event, and the preview showing the user id and anonymous id it yields

The preview also protects you from the mistake that matters most. A field that holds the same value on many events, such as a plan name mapped as a user id, would join unrelated people into one. When the preview finds one, it says which field and Save mapping stays unavailable until the mapping changes:

The preview warning that properties.plan has the same value in six of six sampled events and would merge unrelated people, with Save mapping unavailable

Saved mappings apply to the next events from the source.

An event links identifiers only when the visitor has agreed to be identified:

  • Consent from your consent platform (TCF) must include storing information on the device and creating profiles.
  • A “do not sell or share” choice or Global Privacy Control keeps the visitor’s devices together but does not join them to a login, email or phone.
  • Parsed consent from the SDK follows its identify choice.
  • Events with no consent information follow the workspace’s default, which is to allow.

Finding a person

Under Find a person, choose an identifier and enter a value exactly as it arrives on events. You see the person’s profile, every identifier linked to them, how each was established, and when each was last seen.

Find a person: a user id looked up, showing the profile with two devices, an email and a user id, each marked as from the browser, with a Separate button on each

From the browser marks an identifier established by events your website or app sent; Verified marks one established by your server, your warehouse, or a person on this page.

Correcting the graph

  • Separate moves an identifier out of a person’s profile into a profile of its own, for example a family tablet that two people share. Later events do not join the two again.
  • Link two identifiers by hand joins identifiers you know belong to one person. A link made here counts as verified.
  • Erase this person removes the person from every place realtime identity keeps them. See Erasing a person. Workspace owners and admins can erase people.

Erasing a person

When someone asks to be forgotten, find them under Find a person and select Erase this person. One erasure reaches every place realtime identity keeps them:

Find the person by any identifier; erase them from the realtime identity graph, realtime audience counts, realtime sync history and the identity tables in your warehouse, and from forwarded event tables through Deletion Rules; for 30 days, events sent before the erasure and warehouse runs cannot bring them back
  • The realtime identity graph: every identifier of the person, and the profile ids they had.
  • Realtime audience counts and realtime sync history: everything counted or recorded under any of their identifiers.
  • Identity tables in your warehouse: the person’s rows in the tables an identity graph with a realtime half writes, such as its identifier ownership and profile id history.
  • Forwarded event tables: when your workspace has Deletion Rules, they clean these tables as they do your other data. Without them, these tables are yours to clean, as their other identifier columns are.

When the erasure finishes, the result lists each place and what happened there.

The erasure result: erased from the realtime identity graph, realtime audience counts, realtime sync history and each identity table in the warehouse, with forwarded event tables yours to clean, and the date until which the person cannot come back

For 30 days after an erasure, neither events sent before it nor warehouse identity runs can bring the person back, so you have time to delete them from your source data. If something could not be erased, the result says where; erase the person again to finish. The erasure is recorded without the identifier itself.

An erasure removes the person from what realtime identity keeps. Your own source tables and the events they arrive on are yours to delete, and the 30 days are the time to do it.

Safeguards

The Safeguards section keeps one shared device or a misbehaving client from joining many people together:

The Safeguards section: identifiers per person, new links per identifier per hour, days before a device can be replaced, days an inactive identifier is kept, and which identifiers are devices
SafeguardDefaultWhat it does
Identifiers per person100Above this, the least recently seen device is replaced and other identifiers are kept apart.
New links per identifier per hour100An identifier joining people faster than a person could is paused for the hour.
Days before a device can be replaced30A device seen more recently than this is never replaced by a new one.
Days an inactive identifier is kept400An identifier that has not been seen for this long is retired.
Device identifiersAnonymous IDA person can have several; when they reach their limit the least recently seen makes way.

Values such as null, undefined, 0 and anonymous are never treated as identifiers.

Some joins are deliberately not made from browser events alone. Two profiles that each already have a login, email or phone are joined only by verified evidence: your server, your warehouse, or a link made by hand.

Realtime audiences and attributes

When your workspace reaches the Live stage, realtime audiences and realtime attributes count each person’s events across every identifier the graph has joined.

For example, a customer signs in on your website, where the graph joins their user ID, their browser and their email. Later your order system reports a purchase that carries only their email. That purchase counts toward the same person, so an audience such as “bought online and in store in the last hour” includes them as soon as the purchase arrives.

  • Events with only an email or a phone are counted. Any identifier the graph matches on identifies the person an event is about, as the source’s mapping reads it.
  • Realtime Events on server sources need no user ID field. On a source the graph reads, you can leave the user ID and anonymous ID fields of a Realtime Event empty, and the mapping identifies each event.
  • Realtime attribute enrichments follow the same person. An enrichment that adds realtime attributes to forwarded events reads the person the event belongs to.
  • Every count is for the whole person. Once Live, reads wait for the graph, so an audience never answers for one identifier alone. If the graph is briefly unavailable, membership reads answer 503 with the code identity_unavailable, and syncs and forwarded events are retried, so every answer and delivery still follows the whole person.
  • Moving between stages is safe. Before Live, audiences count each identifier as they always have, and moving back from Live restores exactly that.

Looking people up from your systems

Your servers can ask who an identifier belongs to with the identity API. It needs an identity API key: create one under API Keys → Identity API Keys, or select Create an identity API key under Find a person on a graph’s Realtime tab. The key is shown once, so store it with your other server secrets. It works for the whole workspace, and it is for servers only: the identity API never accepts it from a web page. See and revoke your keys under API Keys → Identity API Keys.

curl https://membership.zeotap.com/v1/identity/email/pat@example.com \ -H "Authorization: Bearer svk_..."
{ "graph_id": "f03d5957-63ef-46a9-a10d-7e6e16b84c0f", "graph_name": "Event identity", "profile_id": "01a1ffc6-9118-77e2-a1c2-495a0a3c6344", "status": "resolved", "identifiers": [ { "family": "anonymous_id", "value_key": "visitor-7", "trust": "client_asserted" }, { "family": "email", "value_key": "8b1a…", "trust": "verified" }, { "family": "user_id", "value_key": "customer-42", "trust": "verified" } ] }
RequestReturns
GET /v1/identity/{identifier}/{value}The person an identifier belongs to. Add ?variant=email_sha256_lowercase to send an email you have already hashed.
GET /v1/identity/profiles/{profile_id}A profile by id. An id that was merged into another profile returns the profile it became, with redirected_from.
GET /v1/identity/profiles/{profile_id}/linksThe evidence that joined the profile’s identifiers.
POST /v1/identity/resolveUp to 100 identifiers in one call: {"identifiers": [{"family": "user_id", "value": "customer-42"}]}.

status is resolved for a settled profile, pending for one created in the last second that may still join another, and unknown when nobody with that identifier has been linked. Until the workspace is Live, every answer is unknown, so nothing comes to rely on the graph before it is ready. To list only some of a person’s identifiers, add a read policy with ?policy=.

A web page can ask for its own visitor’s profile id with a Site key, without seeing any identifiers:

curl "https://membership.zeotap.com/v1/identity/me?anonymous_id=visitor-7&user_id=customer-42" \ -H "Authorization: Bearer psk_..."

The signed-in user is preferred, so on a shared browser the person signed in is answered.

Asking your agent

The agent can look a person up for you (“which devices does customer-42 use?”). It can also propose linking or separating identifiers, and every such change waits for a person to approve it before it is made.

Last updated on