Skip to Content
IdentityRealtime Syncs and Identity

Realtime Syncs and Identity

When your workspace reads its realtime identity graph, every realtime sync delivers people rather than identifiers. A visitor who browses on a laptop, signs in on a phone and buys in your app is one person, entered once and told once when they leave, whichever identifier the next event carries.

This page shows how to choose which identifier a destination receives, what happens when two people the destination already knows turn out to be one, and how to review merges before they are sent.

Choosing the key a destination receives

Open a realtime sync and select Edit. Key sent to the destination chooses which of the person’s identifiers the destination is told about:

KeyWhat the destination receives
User IDThe person’s user ID, spelled as your site or app sends it. This is the default.
Profile IDThe identity graph’s profile ID, which stays the same across every identifier the person uses.
Email address, SHA-256 hashedThe hash of the person’s email address.
Phone number, SHA-256 hashedThe hash of the person’s phone number.
Email address, Phone numberThe plain value, read from a Store keyed by profile ID. Choose the Store and its field.
Anonymous IDThe person’s device or browser ID.
The realtime sync form's Key sent to the destination picker set to the hashed email address, with Merge people at the destination switched on

A person who has no identifier of the chosen kind yet is counted as awaiting identity and delivered as soon as one arrives. When the destination’s own settings say what its key is (for example a hashed email), the two must agree; the form tells you if they do not.

Every delivery also says which person it is about. Webhook-style destinations receive the key and its kind, and the person’s profile ID, next to the user ID they have always received:

{ "type": "audience.entered", "user_id": "customer-42", "key": { "family": "email_sha256", "value": "5d41402abc4b2a76…" }, "profile_id": "01a2…", "audience": { "id": "…", "name": "Cart abandoners" } }

When two people become one

The graph can learn that two people your destination already knows are the same person: they sign in on a second device, an admin links them, or your warehouse confirms it. The person keeps one key from then on, and the sync makes sure the destination does not keep a stale second record:

Two visitors, each delivered under their own key, are joined into one person by the identity graph; a destination that merges people merges the second record into the first, and one that does not is told the second key left
  • With merges on, the destination is asked to merge the second record into the one that is kept. Webhook-style destinations receive an identity.merged delivery naming both keys and both profile IDs.
  • With merges off, the destination is told the merged-away key left the audience. Nobody is re-entered.

Turn merges on with Merge people at the destination on the sync’s form. The switch appears for destinations that can merge people; some destinations have it on by default. A merge is only ever sent when the graph’s evidence is trusted: a link from your server, a signed-in identity, an admin, or your warehouse. A link a browser asserted on its own never merges records at a destination.

When a person’s key changes for another reason, for example an admin separates two identifiers, the old key is told the person left before the new key is told they joined. The sync’s history records each of these with the reason.

Reviewing held merges

Some destinations cannot undo a merge. For those, a merge made by an admin or confirmed by your warehouse waits on the sync’s Merges tab before it is sent:

Who joined the two peopleWaits for
An adminOne hour, so a mistaken link can be undone first
Your warehouseOne day, so a correction from the next warehouse run can cancel it
A switch to another graphUntil the switch is finished
Events from your site or appNot held: sent at once
The Merges tab of a realtime sync listing two held merges, each with the key merged into the key that is kept, why it was held, when it will be sent, and Send now and Cancel buttons

Select Send now to send a merge within a minute, or Cancel so the destination is never asked to merge. If the two people are separated again while a merge is held, it is cancelled for you.

Looking up what a person was sent

On the sync’s Deliveries tab, look a person up by any identifier the graph holds for them. The history shows every entry and exit for the person, the key each was delivered under, and why an identity change caused it.

Moving between stages

While the graph is being built or compared, realtime syncs keep delivering exactly as before. When the workspace moves to reading the graph, people the sync already told about are not told again, and moving back restores the earlier behaviour without duplicate deliveries.

Last updated on