Deprecated Methods

Certain methods that exist in the Marketing Cloud Personalization SDK aren’t included in the Data 360 SDK, because they aren’t used by Salesforce Personalization. Use this reference to determine what to use instead.

Deprecated Marketing Cloud Personalization Method Method Code Example Salesforce Personalization Replacement
Evergage.addEventListener()
Evergage.addEventListener(callback);
document.addEventListener(SalesforceInteractions.CustomEvents.OnEventSend, callback);
Evergage.addResponseListener()
Evergage.addResponseListener(callback);

No direct equivalent.

Use Web Personalization Manager and sitemap transformers to handle personalization responses.

listener() method with ListenerOptions object
SalesforceInteractions.listener('click', '.button', { 
  user: {},
});

Use the callback function.

SalesforceInteractions.listener('click', '.button', () => {
  SalesforceInteractions.sendEvent({ ... });
});