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:
| Key | What the destination receives |
|---|---|
| User ID | The person’s user ID, spelled as your site or app sends it. This is the default. |
| Profile ID | The identity graph’s profile ID, which stays the same across every identifier the person uses. |
| Email address, SHA-256 hashed | The hash of the person’s email address. |
| Phone number, SHA-256 hashed | The hash of the person’s phone number. |
| Email address, Phone number | The plain value, read from a Store keyed by profile ID. Choose the Store and its field. |
| Anonymous ID | The person’s device or browser ID. |
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:
- With merges on, the destination is asked to merge the second record into the one that is kept. Webhook-style destinations receive an
identity.mergeddelivery 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 people | Waits for |
|---|---|
| An admin | One hour, so a mistaken link can be undone first |
| Your warehouse | One day, so a correction from the next warehouse run can cancel it |
| A switch to another graph | Until the switch is finished |
| Events from your site or app | Not held: sent at once |
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.