Profile IDs: When They Change
A profile ID names one person in one identity graph. You can store it in your own systems and rely on it: it changes only for the reasons on this page, every change is announced with its reason, and an old ID keeps leading to the person it named.
The reasons
| Reason | When it happens | What the old ID does |
|---|---|---|
merged | Two profiles turn out to be one person, for example when someone signs in on a second device. | Leads to the profile that was kept. The older profile’s ID is the one kept. |
split | An admin separates identifiers, or a visitor withdraws identify consent and their device leaves the profile. | Keeps naming the part it kept. The part that left gets a new ID. |
warehouse_corrected | A warehouse resolution run judged the evidence differently, or placed an identifier with another person. | Leads to the person your warehouse decided on. |
graph_switched | Another graph now serves this person, after a switch, a rebuild or a change of which graph serves a parent model. | Leads to the person’s ID in the graph that now serves. |
erased | The person was erased. | Resolves to nothing. |
The profile ID belongs to one graph, and every response that carries one also names its graph. “The” profile ID, with no graph named, means your workspace’s primary realtime graph.
Following a change
- In your apps and websites, the SDK tells you when the visitor’s profile ID changes:
onProfileChangereceives the new ID, the previous one and the reason. See the SDK. - From your servers, the identity API answers a merged-away ID with the profile it became, and says so with
redirected_from. See the identity API. - At your destinations, realtime syncs can merge the two records, or send an
identity.mergeddelivery. See Destination Merges and the identity.merged webhook. - In your warehouse, the ID map records every retired ID and the ID it became, so any historical event can be read as today’s person with one join. See Warehouse Tables and SQL.
Which ID is kept
When two profiles merge, the one created first is kept. A profile your warehouse confirmed comes before one seen only in events. Both engines use this same order, so a merge made by your events and the same merge made by your warehouse keep the same ID.
Storing a profile ID in your CRM or data lake is safe. If it is later merged away, it still resolves through the identity API and through the ID map, so nothing you stored goes stale without a way back.