ÃÛ¶¹ÊÓÆµ

Accessing response tokens

Personalization content returned from ÃÛ¶¹ÊÓÆµ Target includes response tokens, which are details about the activity, offer, experience, user profile, geo information, and more. These details can be shared with third-party tools or used for debugging. Response tokens can be configured in the ÃÛ¶¹ÊÓÆµ Target user interface.

To access any personalization content, provide a callback function when sending an event. This callback will be called after the SDK receives a successful response from the server. Your callback will be provided a result object, which may contain a propositions property containing any returned personalization content. Below is an example of providing a callback function.

alloy("sendEvent", {
    renderDecisions: true,
    xdm: {}
  }).then(function