renderDecisions
The renderDecisions property allows you to force the Web SDK to render any personalized content that is eligible for automatic rendering.
Set the renderDecisions boolean when running the sendEvent command. If omitted, this property defaults to false. Set this property to true if you want to automatically render personalized content.
renderDecisions property is incompatible with the documentUnloading property. Avoid setting both properties to true simultaneously.alloy("sendEvent", {
"xdm": adobeDataLayer.getState(reference),
"renderDecisions": true
});
Make sure that when setting this property to true that you also include associated scopes or surfaces. These scopes or surfaces can be requested automatically (such as on the first sendEvent command on a page), or explicitly (using personalization.decisionScopes or personalization.surfaces). A common issue when rendering personalization is the following scenario:
- A
sendEventcommand executes early on the page that requests default personalization withrenderDecisionsnot set (defaults tofalse). Propositions are fetched but not rendered. - Later on the page, another
sendEventtriggers withrenderDecisionsset totruebut does not include any scopes or surfaces. Since there are no scopes or surfaces in this second call, nothing is rendered.
You can avoid this issue by either:
- Setting
renderDecisionstotrueon the firstsendEventcall; or - Explicitly setting
decisionScopesorsurfaceson a subsequentsendEventcall when settingrenderDecisionstotrue.
Render decisions using the Web SDK tag extension
The Web SDK tag extension equivalent of this property is the Render visual personalization decisions check box within the ‘Send event’ action.