---
title: "window.Engage.triggerExperiences()"
slug: "engage-window-triggerexperiences"
abstract: "Describes the client-side triggerExperiences() function on the window object in the Sitecore Engage SDK (Sitecore CDP Stream API)."
---
# window.Engage.triggerExperiences()

The `triggerExperiences()` function reruns every web experience and web experiment that's live in Sitecore Personalize. This function is [particularly useful](https://doc.sitecore.com/cdp/en/developers/api/stream-api/sitecore-engage-sdk-reference/functions/running-personalization.html#UUID-b9e97923-f93d-4586-6d10-4776222ba566_section-idm4563884848390433568865645266 "Rerunning web experiences and web experiments") if you want to run personalization, for example:

- In a multi-page application, on the same page in response to user input.
- In a single-page application (SPA), when the user navigates between routes.

You can only use this function if you previously set the `[webPersonalization](settings-object.html#UUID-60c6365e-ff13-69eb-f0eb-aab96f66de3e_para-idm1903353065604344)` attribute to `true` in the settings object in the `[Engage.init()](engage-init.md "Engage.init(settings)")` function, on the client side of your app.

Here's an example of how to use the `triggerExperiences()` function to make sure that web experiences and web experiments always run on the `/contact` route of a SPA app.

```javascript
import { init } from "@sitecore/engage";

let engage;

const loadEngage = async () => {
  engage = await init({
    // ...
    webPersonalization: true
  });

  // Make sure web experiences and web experiments always run in SPA apps:
  if (window.location.pathname.includes("/contact")) {
    window.Engage.triggerExperiences();
  }
};

```