Audience overlay paths
Patch a component block
Suppose.content/pages/home/_index.json contains this base block:
.content/overlays/audience/enterprise/pages/home/_index.json:
hero is the base block’s id, not its component contract name. ACI patches that block in place and retains the base description and call to action.
Merge behavior
Prefer narrow field patches. Replace a full region only when the personalized experience needs a different composition and you intend to own the complete replacement.
Only remove optional fields. The resolved result must still satisfy its component and layout contracts.
Personalize a shared fragment
Fragments use the same pattern. To personalize.content/fragments/navigation/_index.json, create:
Combine locale and audience
When site configuration includes:Validate and review
Troubleshooting
The overlay compiles but nothing changes
The overlay compiles but nothing changes
Confirm the audience is enabled,
audience appears in overlayResolution, the target page ID is correct, and the region key matches the base block’s id.The whole region changed
The whole region changed
Check whether the overlay supplies an array. Arrays replace regions; an object keyed by block ID patches selected blocks.
Removing a field fails compilation
Removing a field fails compilation
A
null value removes the field. If the component contract requires it, provide a valid replacement instead.The locale and audience result is unexpected
The locale and audience result is unexpected
Review the locale-only overlay, audience-only overlay, and combined overlay in that order. The combined path is most specific and applies last.
Next: Collection and Consent →