Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Developing with Sitecore Personalize
Data privacy
Before you start sending data
Integrating with Sitecore Personalize
Stream API
Personalize API Flow execution
REST APIs
  • Sitecore Personalize for developers
  • Stream API
  • Boxever JavaScript Library (legacy) reference
  • Functions
  • Boxever.triggerExperiences()

Boxever.triggerExperiences()

The triggerExperiences() function reruns every Web Experience and Web Experiment that is live in Sitecore Personalize.

When the Boxever JavaScript Library loads, it runs every live Web Experience and Web Experiment once. The experiences and experiments do not automatically run again on the same page. You can manually rerun them in response to user input, for example, after the user fills out a form field or clicks a button.

Parameters

none

Return value

undefined

Example

Rerun every live Web Experience and Web Experiment if the user enters a search string that includes the word shoe:

RequestResponse
searchBarInput.addEventListener("keyup", event => {
    if (event.target.value.includes("shoe")) {
        Boxever.triggerExperiences();
    }
});

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2026 Sitecore