Skip to Content
IdentityComparing, Serving and Read Policies

Comparing, Serving and Read Policies

Realtime identity reaches your audiences, Sites and APIs in stages. This page shows how to read the comparison with today’s profiles before going Live, what each serving surface returns once Live, and how read policies let each audience or Site choose which of a person’s linked identifiers it reads.

Checking the graph before Live

In the Comparing stage, every realtime read is answered twice: once with today’s profiles, which is what is served, and once with the realtime graph, which is only compared. The results are counted per workspace, so you can see how the two differ before anything relies on the graph.

Open Identity Graphs, open the workspace’s main graph and choose the Realtime tab. The Realtime identity card names the workspace’s stage and, while it is comparing, the Comparison with today’s profiles:

The Realtime identity card in the Comparing stage: reads compared, explained differences and unexplained differences, and the read policies table
ResultWhat it means
Reads comparedHow many reads were answered both ways in the last day.
Explained differencesDifferences the graph makes on purpose: Shared devices kept with one person, where a browser two people used stays with the person who used it first, and Linked through a new identifier, such as an email, where the graph joins identifiers today’s profiles never joined.
Unexplained differencesLinks nothing explains, and Identifiers the graph has not seen, such as visitors who have not sent an event since the graph started building.

A healthy graph shows mostly explained differences. When unexplained differences stay low, the workspace is ready for Live.

Your account team reviews the same comparison with you before the workspace moves to Live.

Until a workspace is Live, everything reads today’s profiles, and the identity surfaces below answer "status": "unknown" with no profile id, so nothing can come to depend on the graph early.

What each surface returns once Live

One person with a user id and loyalty id from the warehouse, an email from a website sign-in and two browsers: All links reads all five; Confirmed by your warehouse reads the user id and loyalty id; Logged-in identifiers only reads the user id, loyalty id and email

Sites

A Site reads a visitor by any identifier the graph links to them. In the Site’s Console, open Domains and set Who visitors are:

The Who visitors are settings of a Site: the identifiers pages may look visitors up by, with user id and anonymous id ticked and email offered, and the read policy for the visitor's identity and profile
  • Pages may look visitors up by lists the identifiers a page may use. User id and anonymous id are ticked by default.
  • Anything other than a user id or an anonymous id needs an identity token. A page that looks a visitor up by an email, a phone or a profile id sends the identity token your server signed for that visitor, in the X-Identity-Token header. The answer is served when the token’s identifiers reach the identifier asked about through verified links. The same rule applies to the Membership API’s client keys, which also run in the browser.
  • Read policy for the visitor’s identity and profile chooses which of the visitor’s identifiers the Site’s identity and profile read. See Read policies.

Each read carries an identity block naming the visitor’s profile:

{ "identity": { "index": "email", "graph_id": "f03d5957-63ef-46a9-a10d-7e6e16b84c0f", "profile_id": "01a1ffc6-9118-77e2-a1c2-495a0a3c6344", "status": "resolved" } }

Profile fields come from the visitor’s Store entries reached through verified links, so a field is always about the person the page is reading.

The Profile API

The Profile API reads a Store entry by any identifier the graph links, for example by email on a Store keyed by user id:

curl https://profiles.zeotap.com/v1/stores/user_profiles/entries/email/pat@example.com \ -H "Authorization: Bearer svk_..."

The entry is the one of the person the email belongs to, reached through verified links.

Realtime audiences, attributes and syncs

Realtime audiences, realtime attributes and realtime syncs count each person across the identifiers their read policy keeps, and every delivery is made for the whole person. A realtime audience shows Identity: Event identity beside its read policy, linking to the graph its people come from.

The identity API

GET /v1/identity/{identifier}/{value} and POST /v1/identity/resolve take ?policy= to list the identifiers a read policy keeps: all_links (the default), warehouse_confirmed, logged_in_only, or a custom policy’s id. The profile id is the same under every policy.

Every answer is about the whole person

Once Live, every read and every delivery is answered from the realtime identity graph, so the same visitor gets the same answer from one read to the next. Reads wait for the graph rather than answering for a single identifier, and realtime syncs and event forwarding do the same.

If the graph is briefly unavailable, a read answers 503 with the code identity_unavailable and a Retry-After header; retry it after that many seconds. The Site SDK, realtime syncs and event forwarding retry on their own, so nothing is lost and every delivery is still made for the whole person.

{ "code": "identity_unavailable", "error": "the realtime identity graph did not answer; retry the request" }

Read policies

A read policy decides which of a person’s linked identifiers an audience or a Site reads. The person stays the same: only the identifiers read for them change.

PolicyReads
All linksEvery identifier linked to the person. The default.
Confirmed by your warehouseIdentifiers your warehouse links to the person, plus links your warehouse has confirmed.
Logged-in identifiers onlyEvery linked identifier except devices, such as anonymous ids.

The Read policies table on the Realtime identity card lists the policies and which audiences and Sites use each.

Choosing a policy for an audience

In the audience builder of a realtime audience, choose a Read policy. Below it, the builder shows how the policy compares with All links on people the graph has seen recently, for example how many of them are read across fewer identifiers:

The Read policy field of a realtime audience with Logged-in identifiers only chosen, the Identity: Event identity link, and the difference against All links

Custom policies

Under Advanced: new policy, a workspace admin can define up to five policies of their own:

The read policy editor: a name, links from your warehouse, identifiers left out, verified links only and a minimum confidence, with a note on what the choice will do
  • Links from: Events, Admins (links made by hand on the Realtime tab) or Your warehouse. With none ticked, every link is read.
  • Leave out: identifiers never read, and no link through them.
  • Verified links only: links your server, your warehouse or a person established.
  • Minimum confidence: leaves out probabilistic warehouse links below it.

The editor tells you when a policy would read each identifier on its own, for example a warehouse-only policy on a graph built from events alone, and when Verified links only is chosen in a workspace whose identity verification is off. A policy in use by an audience or Site cannot be deleted; choose another policy for them first.

Read policies change only what is read. They never change the graph, and every identifier stays linked to the person.

Last updated on