The Personalization JavaScript API enables manipulation of Experience Builder through the window.AcquiaLiftPublicApi
global namespace. This page describes the methods that are available for use, by function.
Managing displayed data
Use the following methods to handle the information displayed by Experience Builder:
Method | Description |
---|---|
refresh | Refreshes the data displayed in an open instance of the Experience Builder. This can be helpful when using a custom application that modifies slots, or segments outside of the Experience Builder, and you want the Experience Builder to recognize the changes without forcing a refresh of the entire page. Optionally, you can specify an array of the types of data to refresh. The valid types are slot , rule , and segment . |
Examples
To refresh all of the Experience Builder-related data on a page, use the following code:
window.AcquiaLiftPublicApi.refresh();
To trigger a refresh of the slot data, use code similar to the following:
window.AcquiaLiftPublicApi.refresh(['slot']);