Skip to Content
IdentityIdentity in Forwarding and Stores

Realtime Identity in Forwarding and Stores

With realtime identity live, the events you forward can carry who they are about, and a Store can keep one entry per person instead of one per identifier. This page shows how to add a person’s profile ID to forwarded events, how to forward the merges and splits of people’s profiles, and how to key a Store by profile ID.

Both features follow the workspace’s stage. They take effect once the workspace is Live; until then events are forwarded as before, and a Store keyed by profile ID keeps entries under the identifier each event carries.

Add the person’s profile ID to events

The Identity enrichment adds the person’s profile ID to every event from a source, so your forwarding rules, transformations and warehouse tables can use it.

  1. Open Enrichments and select Add Enrichment.
  2. Pick the event source, and under Read from choose Identity.
  3. Choose how the person is resolved:
    • Read the graph reads who the event’s identifiers belong to. An event that joins two people carries the profile they will become.
    • Link first, then read links the event into the graph before reading it, so even a person’s first event carries their profile ID.
  4. Choose the fields your rules use. Only these are added to the event.
The Fields step of the Identity enrichment: Profile ID and Status chosen, with User ID, Graph ID and Anonymous ID available, each with the event path it lands on
FieldEvent pathWhat it holds
Profile IDenrichment.identity.profile_idthe person’s profile ID
Statusenrichment.identity.statusresolved, planned, pending or unknown
Graph IDenrichment.identity.graph_idthe identity graph the profile belongs to
User IDenrichment.identity.user_idthe person’s user ID, even on an anonymous event
Anonymous IDenrichment.identity.anonymous_idthe person’s most recently seen anonymous ID

The person is found by the identifiers the source’s mapping reads, so there is no lookup key to choose. An event whose visitor has not agreed to be identified is forwarded without these fields.

From a forwarding rule

The profile ID is added to a source’s events by its enrichment, not by the forwarding rule, so every rule on the source can use it. When you choose an event source in a forwarding rule, the form says where the profile ID comes from: it names the source’s Identity enrichment and the field to map, enrichment.identity.profile_id, or offers add an Identity enrichment, which opens a new enrichment with that source and Identity already chosen.

Forward profile merges and splits

Once a graph also runs in your warehouse, the forwarding rule form also lists a Realtime identity source, labelled profile merges and splits. It does not carry your events. Realtime identity sends an identity_changed event on it each time it changes a person’s profile, for example when two profiles turn out to be one person or when an identifier is separated from a profile. Forward it to keep another system’s record of who is who in step with yours.

  1. Create a forwarding rule and choose the Realtime identity source.
  2. Filter on the event name identity_changed. A rule on this source forwards nothing else.
  3. Map the fields your destination needs. Each event names its graph (properties.graph_id), the profile it is about (properties.profile_id), what happened (properties.kind and properties.reason) and when (properties.changed_at). The reasons are the ones a profile ID records.

The source is the platform’s own, so it cannot be edited. Like the Identity enrichment, rules on it forward once the workspace is Live.

Key a Store by profile ID

A Store keyed by profile ID keeps one entry per person, whichever identifier an event carries: the visit before sign-in and the events after it write to the same entry.

Choose The person’s profile ID under Key entries by when you create the Store, or in the Store’s Settings. The key can change only while nothing writes to the Store.

Store settings with Key entries by set to The person's profile ID, and the note that only verified events write to a person's entry

Forwarding rules write to such a Store as to any other. Each event is written to the entry of the person it is about.

Only verified events write to a person’s entry

A person’s entry holds information you rely on, so it is written only by events whose identity is verified: events your servers send, and events carrying an identity token that covers the identifier. Other events, such as a browser event naming a user ID, write under the identifier they carry instead. The same rule applies to a campaign’s person key read from the profile ID.

When two profiles turn out to be one person

When the graph learns that two profiles are the same person, their Store entries are combined:

A signed-in profile with city Oslo, tier gold and a cleared coupon, and a second device with city Rome, language Italian and an old coupon, combine into one entry with city Oslo, tier gold and language Italian, the coupon still cleared
  • Every value the remaining profile holds stays as it is.
  • A field it never had is added from the other profile.
  • A field that was cleared stays cleared.

The other profile’s entry is then removed. When a person’s profile is split, the entry stays with the profile that keeps its ID.

When a person is erased, their entries in Stores keyed by profile ID are erased with them.

Enrichments read Store entries through a short cache. After two profiles combine, an enrichment can read the earlier entry for up to its cache time.

Last updated on