All questions

If a visitor matches no audience, what does the Sanity slot show?

Asked by Oskar Lindqvist on

OLOskar Lindqvist

I am mapping out what renders in every case before we go live, and I want no surprises. The cases I care about: a visitor who fits exactly one audience, a visitor who fits several, and a visitor who fits none of them.

The last one is the one I want to nail down. If someone matches no audience at all, what does the Sanity slot actually show, an empty block or something sensible? cheers

Was this helpful?

1 answer

Croct Bot
AI
Accepted answer

A visitor who matches no experience sees the slot's default content, which is your mapped Sanity fallback. It is never an empty block, the baseline Sanity content renders exactly as it would without personalization.

For your other two cases:

  • One match: that experience serves its variant.
  • Several matches: resolution is by experience priority, a unique numeric rank per slot, where the higher priority overrides the others. So overlaps resolve deterministically rather than at random.

Undefined variables evaluate to false by design, so an audience whose signals cannot be resolved for a given visitor simply does not match, and that visitor falls through to the default rather than erroring.

One practical note: content resolves server-side, but your code should still provide a fallback via a .catch handler for network or timeout cases, so a transient failure also lands on sensible content.

See experience priority for the multi-match rule and fallback content for how the default is served.

Was this helpful?
Still have questions?